#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 | #64211225 | Utilizator | |
| Fișier | numere.cpp | Dimensiune | 361 B |
| Data încărcării | 23 Aprilie 2026, 09:43 | Scor/rezultat | Eroare de compilare |
numere.cpp: In function ‘int main()’: numere.cpp:16:9: error: overloaded function with no contextual type information 16 | max=a; | ^ numere.cpp:18:12: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator>=’ 18 | if(max >= b) | ~~~~^~~~ numere.cpp:19:13: error: overloaded function with no contextual type information 19 | max=b; | ^ numere.cpp:20:11: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator>=’ 20 | if(max>=c) | ~~~^~~ numere.cpp:21:13: error: overloaded function with no contextual type information 21 | max=c; | ^ numere.cpp:22:11: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator>=’ 22 | if(max>=d) | ~~~^~~ numere.cpp:23:13: error: overloaded function with no contextual type information 23 | max=d; | ^ numere.cpp:24:11: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator>=’ 24 | if(max>=e) | ~~~^~~ numere.cpp:25:13: error: overloaded function with no contextual type information 25 | max=e; | ^
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ă.