#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 | #64107432 | Utilizator | |
| Fișier | numere.cpp | Dimensiune | 4.44 KB |
| Data încărcării | 17 Aprilie 2026, 11:37 | Scor/rezultat | 20 puncte |
numere.cpp: In function ‘int main()’: numere.cpp:255:15: warning: ‘max2’ may be used uninitialized [-Wmaybe-uninitialized] 255 | cout<<max1+max2+max3; | ~~~~^~~~~ numere.cpp:7:24: note: ‘max2’ was declared here 7 | int a,b,c,d,e,max1,max2,max3; | ^~~~ numere.cpp:255:21: warning: ‘max3’ may be used uninitialized [-Wmaybe-uninitialized] 255 | cout<<max1+max2+max3; | ^~~~ numere.cpp:7:29: note: ‘max3’ was declared here 7 | int a,b,c,d,e,max1,max2,max3; | ^~~~
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.002 secunde | Raspuns gresit. | 10 | 0 | ||
| 2 | 0.001 secunde | OK. | 10 | 10 | ||
| 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.001 secunde | Raspuns gresit. | 10 | 0 | ||
| 8 | 0.001 secunde | OK. | 10 | 10 | ||
| 9 | 0.001 secunde | Raspuns gresit. | 10 | 0 | ||
| 10 | 0.001 secunde | Raspuns gresit. | 10 | 0 | ||
| Punctaj total | 20 | |||||
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ă.