#559
Se dau 5 numere distincte. Să se determine suma celor mai mari 3 dintre ele.
Problema | 5numere | Operații I/O |
![]() |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #57728177 | Utilizator | |
Fișier | numere.cpp | Dimensiune | 1.00 KB |
Data încărcării | 12 Aprilie 2025, 15:17 | Scor / rezultat | 100 puncte |
numere.cpp: In function 'int main()': numere.cpp:47:24: warning: 'w' may be used uninitialized in this function [-Wmaybe-uninitialized] }else if(y<=x and y<=w and y<=z) ^ numere.cpp:52:19: warning: 'z' may be used uninitialized in this function [-Wmaybe-uninitialized] cout<<y+x+z; ^ numere.cpp:47:24: warning: 'y' may be used uninitialized in this function [-Wmaybe-uninitialized] }else if(y<=x and y<=w and y<=z) ^ numere.cpp:47:15: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized] }else if(y<=x and y<=w and y<=z) ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | OK. | 10 | 10 | ||
2 | 0 secunde | OK. | 10 | 10 | ||
3 | 0 secunde | OK. | 10 | 10 | ||
4 | 0 secunde | OK. | 10 | 10 | ||
5 | 0 secunde | OK. | 10 | 10 | ||
6 | 0 secunde | OK. | 10 | 10 | ||
7 | 0 secunde | OK. | 10 | 10 | ||
8 | 0 secunde | OK. | 10 | 10 | ||
9 | 0 secunde | OK. | 10 | 10 | ||
10 | 0 secunde | OK. | 10 | 10 | ||
Punctaj total | 100 |
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ă.