#319
suma35
Se dă un număr natural nenul n
. Să se determine toate modalităţile distincte de descompunere a numărului n
în sumă de 3
şi 5
.
Problema | suma35 | Operații I/O |
suma35.in /suma35.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #25705010 | Utilizator | |
Fișier | suma35.cpp | Dimensiune | 834 B |
Data încărcării | 13 Noiembrie 2020, 10:11 | Scor / rezultat | Eroare de compilare |
suma35.cpp:13:1: error: stray '\342' in program { //conditia de validare: daca s-a depasit numarul n , returneaza 0, in caz contrar returneaza 1 ^ suma35.cpp:13:1: error: stray '\200' in program suma35.cpp:13:1: error: stray '\213' in program suma35.cpp:13:1: error: stray '\342' in program suma35.cpp:13:1: error: stray '\200' in program suma35.cpp:13:1: error: stray '\213' in program suma35.cpp:13:1: error: stray '\342' in program suma35.cpp:13:1: error: stray '\200' in program suma35.cpp:13:1: error: stray '\213' in program suma35.cpp:13:1: error: stray '\342' in program suma35.cpp:13:1: error: stray '\200' in program suma35.cpp:13:1: error: stray '\213' in program suma35.cpp:17:1: error: stray '\342' in program } ^ suma35.cpp:17:1: error: stray '\200' in program suma35.cpp:17:1: error: stray '\213' in program suma35.cpp:17:1: error: stray '\342' in program suma35.cpp:17:1: error: stray '\200' in program suma35.cpp:17:1: error: stray '\213' in program suma35.cpp:17:1: error: stray '\342' in program suma35.cpp:17:1: error: stray '\200' in program suma35.cpp:17:1: error: stray '\213' in program suma35.cpp:17:1: error: stray '\342' in program suma35.cpp:17:1: error: stray '\200' in program suma35.cpp:17:1: error: stray '\213' in program suma35.cpp:22:1: error: stray '\342' in program {int i; ^ suma35.cpp:22:1: error: stray '\200' in program suma35.cpp:22:1: error: stray '\213' in program suma35.cpp:22:1: error: stray '\342' in program suma35.cpp:22:1: error: stray '\200' in program suma35.cpp:22:1: error: stray '\213' in program suma35.cpp:22:1: error: stray '\342' in program suma35.cpp:22:1: error: stray '\200' in program suma35.cpp:22:1: error: stray '\213' in program suma35.cpp:22:1: error: stray '\342' in program suma35.cpp:22:1: error: stray '\200' in program suma35.cpp:22:1: error: stray '\213' in program suma35.cpp:26:1: error: stray '\342' in program } ^ suma35.cpp:26:1: error: stray '\200' in program suma35.cpp:26:1: error: stray '\213' in program suma35.cpp:26:1: error: stray '\342' in program suma35.cpp:26:1: error: stray '\200' in program suma35.cpp:26:1: error: stray '\213' in program suma35.cpp:26:1: error: stray '\342' in program suma35.cpp:26:1: error: stray '\200' in program suma35.cpp:26:1: error: stray '\213' in program suma35.cpp:26:1: error: stray '\342' in program suma35.cpp:26:1: error: stray '\200' in program suma35.cpp:26:1: error: stray '\213' in program suma35.cpp:28:1: error: stray '\342' in program {///conditia de iesire din recursivitate ^ suma35.cpp:28:1: error: stray '\200' in program suma35.cpp:28:1: error: stray '\213' in program suma35.cpp:28:1: error: stray '\342' in program suma35.cpp:28:1: error: stray '\200' in program suma35.cpp:28:1: error: stray '\213' in program suma35.cpp:28:1: error: stray '\342' in program suma35.cpp:28:1: error: stray '\200' in program suma35.cpp:28:1: error: stray '\213' in program suma35.cpp:28:1: error: stray '\342' in program suma35.cpp:28:1: error: stray '\200' in program suma35.cpp:28:1: error: stray '\213' in program suma35.cpp:32:1: error: stray '\342' in program {x[k]=i; ^ suma35.cpp:32:1: error: stray '\200' in program suma35.cpp:32:1: error: stray '\213' in program suma35.cpp:32:1: error: stray '\342' in program suma35.cpp:32:1: error: stray '\200' in program suma35.cpp:32:1: error: stray '\213' in program suma35.cpp:32:1: error: stray '\342' in program suma35.cpp:32:1: error: stray '\200' in program suma35.cpp:32:1: error: stray '\213' in program suma35.cpp:32:1: error: stray '\342' in program suma35.cpp:32:1: error: stray '\200' in program suma35.cpp:32:1: error: stray '\213' in program suma35.cpp:34:1: error: stray '\342' in program {scrt=scrt+x[k]; ^ suma35.cpp:34:1: error: stray '\200' in program suma35.cpp:34:1: error: stray '\213' in program suma35.cpp:34:1: error: stray '\342' in program suma35.cpp:34:1: error: stray '\200' in program suma35.cpp:34:1: error: stray '\213' in program suma35.cpp:34:1: error: stray '\342' in program suma35.cpp:34:1: error: stray '\200' in program suma35.cpp:34:1: error: stray '\213' in program suma35.cpp:34:1: error: stray '\342' in program suma35.cpp:34:1: error: stray '\200' in program suma35.cpp:34:1: error: stray '\213' in program suma35.cpp:38:1: error: stray '\342' in program } ^ suma35.cpp:38:1: error: stray '\200' in program suma35.cpp:38:1: error: stray '\213' in program suma35.cpp:38:1: error: stray '\342' in program suma35.cpp:38:1: error: stray '\200' in program suma35.cpp:38:1: error: stray '\213' in program suma35.cpp:38:1: error: stray '\342' in program suma35.cpp:38:1: error: stray '\200' in program suma35.cpp:38:1: error: stray '\213' in program suma35.cpp:38:1: error: stray '\342' in program suma35.cpp:38:1: error: stray '\200' in program suma35.cpp:38:1: error: stray '\213' in program suma35.cpp:39:1: error: stray '\342' in program } ^ suma35.cpp:39:1: error: stray '\200' in program suma35.cpp:39:1: error: stray '\213' in program suma35.cpp:39:1: error: stray '\342' in program suma35.cpp:39:1: error: stray '\200' in program suma35.cpp:39:1: error: stray '\213' in program suma35.cpp:39:1: error: stray '\342' in program suma35.cpp:39:1: error: stray '\200' in program suma35.cpp:39:1: error: stray '\213' in program suma35.cpp:39:1: error: stray '\342' in program suma35.cpp:39:1: error: stray '\200' in program suma35.cpp:39:1: error: stray '\213' in program suma35.cpp:43:1: error: stray '\342' in program } ^ suma35.cpp:43:1: error: stray '\200' in program suma35.cpp:43:1: error: stray '\213' in program suma35.cpp:43:1: error: stray '\342' in program suma35.cpp:43:1: error: stray '\200' in program suma35.cpp:43:1: error: stray '\213' in program suma35.cpp:43:1: error: stray '\342' in program suma35.cpp:43:1: error: stray '\200' in program suma35.cpp:43:1: error: stray '\213' in program suma35.cpp:43:1: error: stray '\342' in program suma35.cpp:43:1: error: stray '\200' in program suma35.cpp:43:1: error: stray '\213' in program suma35.cpp:48:1: error: stray '\342' in program {cin>>n; ^ suma35.cpp:48:1: error: stray '\200' in program suma35.cpp:48:1: error: stray '\213' in program suma35.cpp:48:1: error: stray '\342' in program suma35.cpp:48:1: error: stray '\200' in program suma35.cpp:48:1: error: stray '\213' in program suma35.cpp:48:1: error: stray '\342' in program suma35.cpp:48:1: error: stray '\200' in program suma35.cpp:48:1: error: stray '\213' in program suma35.cpp:48:1: error: stray '\342' in program suma35.cpp:48:1: error: stray '\200' in program suma35.cpp:48:1: error: stray '\213' in program suma35.cpp:52:1: error: stray '\342' in program } ^ suma35.cpp:52:1: error: stray '\200' in program suma35.cpp:52:1: error: stray '\213' in program suma35.cpp:52:1: error: stray '\342' in program suma35.cpp:52:1: error: stray '\200' in program suma35.cpp:52:1: error: stray '\213' in program suma35.cpp:52:1: error: stray '\342' in program suma35.cpp:52:1: error: stray '\200' in program suma35.cpp:52:1: error: stray '\213' in program suma35.cpp:52:1: error: stray '\342' in program suma35.cpp:52:1: error: stray '\200' in program suma35.cpp:52:1: error: stray '\213' in program
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema suma35 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ă.