#559
Se dau 5 numere distincte. Să se determine suma celor mai mari 3 dintre ele.
| Problema | 5numere | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64675817 | Utilizator | |
| Fișier | numere.cpp | Dimensiune | 352 B |
| Data încărcării | 21 Mai 2026, 23:54 | Scor/rezultat | 0 puncte |
numere.cpp: In function ‘int main()’: numere.cpp:7:9: warning: ‘max’ is used uninitialized [-Wuninitialized] 7 | if(a<max) | ^~ numere.cpp:5:23: note: ‘max’ was declared here 5 | int a,b,c,d,e,max,max2,max3,max4,max5; | ^~~ numere.cpp:10:9: warning: ‘max2’ is used uninitialized [-Wuninitialized] 10 | if(b<max2) | ^~ numere.cpp:5:27: note: ‘max2’ was declared here 5 | int a,b,c,d,e,max,max2,max3,max4,max5; | ^~~~ numere.cpp:14:5: warning: ‘max3’ is used uninitialized [-Wuninitialized] 14 | if(c<max3) | ^~ numere.cpp:5:32: note: ‘max3’ was declared here 5 | int a,b,c,d,e,max,max2,max3,max4,max5; | ^~~~ numere.cpp:18:5: warning: ‘max4’ is used uninitialized [-Wuninitialized] 18 | if(d<max4) | ^~ numere.cpp:5:37: note: ‘max4’ was declared here 5 | int a,b,c,d,e,max,max2,max3,max4,max5; | ^~~~ numere.cpp:22:5: warning: ‘max5’ is used uninitialized [-Wuninitialized] 22 | if(e<max5) | ^~ numere.cpp:5:42: note: ‘max5’ was declared here 5 | int a,b,c,d,e,max,max2,max3,max4,max5; | ^~~~
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.002 secunde | Raspuns gresit. | 10 | 0 | ||
| 2 | 0.001 secunde | Raspuns gresit. | 10 | 0 | ||
| 3 | 0.001 secunde | Raspuns gresit. | 10 | 0 | ||
| 4 | 0.001 secunde | Raspuns gresit. | 10 | 0 | ||
| 5 | 0.001 secunde | Raspuns gresit. | 10 | 0 | ||
| 6 | 0.001 secunde | Raspuns gresit. | 10 | 0 | ||
| 7 | 0.003 secunde | Raspuns gresit. | 10 | 0 | ||
| 8 | 0.003 secunde | Raspuns gresit. | 10 | 0 | ||
| 9 | 0.002 secunde | Raspuns gresit. | 10 | 0 | ||
| 10 | 0.001 secunde | Raspuns gresit. | 10 | 0 | ||
| Punctaj total | 0 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema 5numere 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ă.