#197
Combinari
Se citesc două numere naturale nenule n
și k
. Să se afişeze, în ordine lexicografică, submulțimile de câte k
elemente ale mulţimii {1,2,..,n}
.
Problema | Combinari | Operații I/O |
![]() combinari.in /combinari.out
|
---|---|---|---|
Limita timp | 0.5 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #51429582 | Utilizator | |
Fișier | combinari.cpp | Dimensiune | 1.14 KB |
Data încărcării | 15 Iunie 2024, 21:26 | Scor / rezultat | Eroare de compilare |
combinari.cpp:1:7: error: expected nested-name-specifier before 'System' using System; ^ combinari.cpp:1:7: error: 'System' has not been declared combinari.cpp:2:7: error: expected nested-name-specifier before 'System' using System.Collections.Generic; ^ combinari.cpp:2:7: error: 'System' has not been declared combinari.cpp:2:13: error: expected ';' before '.' token using System.Collections.Generic; ^ combinari.cpp:2:13: error: expected unqualified-id before '.' token combinari.cpp:3:7: error: expected nested-name-specifier before 'System' using System.Linq; ^ combinari.cpp:3:7: error: 'System' has not been declared combinari.cpp:3:13: error: expected ';' before '.' token using System.Linq; ^ combinari.cpp:3:13: error: expected unqualified-id before '.' token combinari.cpp:4:7: error: expected nested-name-specifier before 'System' using System.Text; ^ combinari.cpp:4:7: error: 'System' has not been declared combinari.cpp:4:13: error: expected ';' before '.' token using System.Text; ^ combinari.cpp:4:13: error: expected unqualified-id before '.' token combinari.cpp:5:7: error: expected nested-name-specifier before 'System' using System.Threading.Tasks; ^ combinari.cpp:5:7: error: 'System' has not been declared combinari.cpp:5:13: error: expected ';' before '.' token using System.Threading.Tasks; ^ combinari.cpp:5:13: error: expected unqualified-id before '.' token combinari.cpp:6:7: error: expected nested-name-specifier before 'System' using System.Web; ^ combinari.cpp:6:7: error: 'System' has not been declared combinari.cpp:6:13: error: expected ';' before '.' token using System.Web; ^ combinari.cpp:6:13: error: expected unqualified-id before '.' token combinari.cpp:7:7: error: expected nested-name-specifier before 'System' using System.IO; ^ combinari.cpp:7:7: error: 'System' has not been declared combinari.cpp:7:13: error: expected ';' before '.' token using System.IO; ^ combinari.cpp:7:13: error: expected unqualified-id before '.' token combinari.cpp:11:5: error: 'internal' does not name a type internal class Program ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Combinari face parte din prima categorie. Soluția propusă de tine va fi evaluată astfel:
Suma punctajelor acordate pe testele utilizate pentru verificare este 100. Astfel, soluția ta poate obține cel mult 100 de puncte, caz în care se poate considera corectă.