#1286
Submultimi1
Se citește un număr natural nenul n
. Să se afişeze, în ordine lexicografică, toate submulțimile nevide ale mulţimii {1,2,..,n}
pentru care diferența dintre oricare două elemente este mai mare decât 1
.
Problema | Submultimi1 | Operații I/O |
submultimi1.in /submultimi1.out
|
---|---|---|---|
Limita timp | 0.5 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #50822117 | Utilizator | |
Fișier | submultimi1.cpp | Dimensiune | 381 B |
Data încărcării | 08 Mai 2024, 16:05 | Scor / rezultat | Eroare de compilare |
submultimi1.cpp:3:1: error: stray '\342' in program ifstream cin(“submultimi.in”); ^ submultimi1.cpp:3:1: error: stray '\200' in program submultimi1.cpp:3:1: error: stray '\234' in program submultimi1.cpp:3:1: error: stray '\342' in program submultimi1.cpp:3:1: error: stray '\200' in program submultimi1.cpp:3:1: error: stray '\235' in program submultimi1.cpp:4:1: error: stray '\342' in program ofstream cout(“submultimi.out”); ^ submultimi1.cpp:4:1: error: stray '\200' in program submultimi1.cpp:4:1: error: stray '\234' in program submultimi1.cpp:4:1: error: stray '\342' in program submultimi1.cpp:4:1: error: stray '\200' in program submultimi1.cpp:4:1: error: stray '\235' in program submultimi1.cpp:9:1: error: stray '\342' in program cout <<x[i]<<” “; ^ submultimi1.cpp:9:1: error: stray '\200' in program submultimi1.cpp:9:1: error: stray '\235' in program submultimi1.cpp:9:1: error: stray '\342' in program submultimi1.cpp:9:1: error: stray '\200' in program submultimi1.cpp:9:1: error: stray '\234' in program submultimi1.cpp:10:1: error: stray '\342' in program cout <<”\n”; ^ submultimi1.cpp:10:1: error: stray '\200' in program submultimi1.cpp:10:1: error: stray '\235' in program submultimi1.cpp:10:1: error: stray '\' in program submultimi1.cpp:10:1: error: stray '\342' in program submultimi1.cpp:10:1: error: stray '\200' in program submultimi1.cpp:10:1: error: stray '\235' in program submultimi1.cpp:3:17: error: 'submultimi' was not declared in this scope ifstream cin(“submultimi.in”); ^ submultimi1.cpp:4:18: error: 'submultimi' was not declared in this scope ofstream cout(“submultimi.out”); ^ submultimi1.cpp:6:15: error: expected ',' or '...' before numeric constant void afis(int 1) ^ submultimi1.cpp: In function 'void afis(int)': submultimi1.cpp:9:21: error: expected primary-expression before ';' token cout <<x[i]<<” “; ^ submultimi1.cpp: In function 'void back(int)': submultimi1.cpp:16:6: error: 'I' was not declared in this scope x[k]=I; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Submultimi1 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ă.