Detalii evaluare #25705010

Rezumat problemă

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.

Detalii

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 Neata Tiberiu (TibiOctavian)
Fișier suma35.cpp Dimensiune 834 B
Data încărcării 13 Noiembrie 2020, 10:11 Scor / rezultat Eroare de compilare

Evaluare


Mesaj 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

Cum funcționează evaluarea?

www.pbinfo.ro permite evaluarea a două tipuri de probleme:

  • probleme la care rezolvarea presupune scrierea unui program complet
  • probleme la care rezolvarea presupune scrierea unei secvențe de program - câteva instrucțiuni, o listă de declarații, una sau mai multe funcții, etc.

Problema suma35 face parte din prima categorie. Soluția propusă de tine va fi evaluată astfel:

  • Programul sursă este compilat folosind compilatorul corespunzător. Dacă în urma compilării se obțin erori sau avertismente, acestea sunt afișate în această pagină.
  • Dacă programul a fost compilat, executabilul obținut va fi rulat, furnizându-i-se unul sau mai multe seturi de date de intrare, în concordanță cu restricțiile specifice problemei. Pentru fiecare set de date se obține un anumit punctaj, în raport cu corectitudinea soluției tale.

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ă.