#939
Să se scrie un program care citeşte de la tastatura două numere naturale şi determină suma lor.
| Problema | sum00 | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #63261817 | Utilizator | |
| Fișier | sum00.cpp | Dimensiune | 1.41 KB |
| Data încărcării | 24 Februarie 2026, 08:15 | Scor/rezultat | 0 puncte |
sum00.cpp: In function 'void descompunere_niveluri()': sum00.cpp:41:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i=0;i<niv[nrniv].size();i++){ ^ sum00.cpp:45:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(j=0;j<g[x].size();j++){ ^ sum00.cpp: In function 'void afisare()': sum00.cpp:57:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(j=0;j<niv[i].size();j++){ ^
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
| 2 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
| 3 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
| 4 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
| 5 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
| 6 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
| 7 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
| 8 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
| 9 | 0 secunde | Raspuns gresit. | 10 | 0 | Exemplu | |
| 10 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
| Punctaj total | 0 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema sum00 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ă.