#321
PartitiiNumar1
Se dă un număr natural n
. Determinaţi, în ordine lexicografică, toate modalităţile de a-l scrie pe n
ca sumă de numere naturale distincte.
Problema | PartitiiNumar1 | Operații I/O |
partitiinumar1.in /partitiinumar1.out
|
---|---|---|---|
Limita timp | 0.5 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #55005966 | Utilizator | |
Fișier | partitiinumar1.cpp | Dimensiune | 538 B |
Data încărcării | 16 Decembrie 2024, 10:44 | Scor / rezultat | Eroare de compilare |
partitiinumar1.cpp:5:1: error: stray '\342' in program ifstream fin(“partitiinumar.in”); ^ partitiinumar1.cpp:5:1: error: stray '\200' in program partitiinumar1.cpp:5:1: error: stray '\234' in program partitiinumar1.cpp:5:1: error: stray '\342' in program partitiinumar1.cpp:5:1: error: stray '\200' in program partitiinumar1.cpp:5:1: error: stray '\235' in program partitiinumar1.cpp:6:1: error: stray '\342' in program ofstream fout(“partitiinumar.out”); ^ partitiinumar1.cpp:6:1: error: stray '\200' in program partitiinumar1.cpp:6:1: error: stray '\234' in program partitiinumar1.cpp:6:1: error: stray '\342' in program partitiinumar1.cpp:6:1: error: stray '\200' in program partitiinumar1.cpp:6:1: error: stray '\235' in program partitiinumar1.cpp:9:1: error: stray '\342' in program fout << x[i] << “ “; ^ partitiinumar1.cpp:9:1: error: stray '\200' in program partitiinumar1.cpp:9:1: error: stray '\234' in program partitiinumar1.cpp:9:1: error: stray '\342' in program partitiinumar1.cpp:9:1: error: stray '\200' in program partitiinumar1.cpp:9:1: error: stray '\234' in program partitiinumar1.cpp:5:17: error: 'partitiinumar' was not declared in this scope ifstream fin(“partitiinumar.in”); ^ partitiinumar1.cpp:6:18: error: 'partitiinumar' was not declared in this scope ofstream fout(“partitiinumar.out”); ^ partitiinumar1.cpp: In function 'void afisare(int)': partitiinumar1.cpp:9:24: error: expected primary-expression before ';' token fout << x[i] << “ “; ^ partitiinumar1.cpp: In function 'void back(int, int)': partitiinumar1.cpp:16:11: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses] if(s+x[k]<=n) ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema PartitiiNumar1 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ă.