#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 | #64333075 | Utilizator | |
| Fișier | numere.cpp | Dimensiune | 2.04 KB |
| Data încărcării | 30 Aprilie 2026, 09:49 | Scor/rezultat | 0 puncte |
numere.cpp: In function ‘int main()’: numere.cpp:7:28: warning: right operand of comma operator has no effect [-Wunused-value] 7 | cin >> a >> b >> c, d, e; | ^ numere.cpp:7:29: warning: right operand of comma operator has no effect [-Wunused-value] 7 | cin >> a >> b >> c, d, e; | ^ numere.cpp:15:5: warning: ‘d’ is used uninitialized [-Wuninitialized] 15 | if(max < d) | ^~ numere.cpp:5:21: note: ‘d’ was declared here 5 | int a , b , c , d, e, max , min; | ^ numere.cpp:17:5: warning: ‘e’ is used uninitialized [-Wuninitialized] 17 | if(max < e) | ^~ numere.cpp:5:24: note: ‘e’ was declared here 5 | int a , b , c , d, e, max , min; | ^
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.001 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.001 secunde | Raspuns gresit. | 10 | 0 | ||
| 8 | 0.001 secunde | Raspuns gresit. | 10 | 0 | ||
| 9 | 0.001 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ă.