#559
5numere
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 | #58593515 | Utilizator | |
Fișier | numere.cpp | Dimensiune | 965 B |
Data încărcării | 26 Iunie 2025, 16:02 | Scor / rezultat | Eroare de compilare |
numere.cpp:1:1: error: 'include' does not name a type include <iostream> ^ numere.cpp: In function 'int main()': numere.cpp:5:5: error: 'cin' was not declared in this scope cin >> a >> b >> c >> d >> e; ^ numere.cpp:7:9: error: 'cout' was not declared in this scope cout << a + b + c; ^ numere.cpp:11:9: error: 'cout' was not declared in this scope cout << a + b + d; ^ numere.cpp:15:9: error: 'cout' was not declared in this scope cout << a + b + e; ^ numere.cpp:19:9: error: 'cout' was not declared in this scope cout << a + c + d; ^ numere.cpp:23:9: error: 'cout' was not declared in this scope cout << a + c + e; ^ numere.cpp:27:9: error: 'cout' was not declared in this scope cout << a + d + e; ^ numere.cpp:31:9: error: 'cout' was not declared in this scope cout << b + c + d; ^ numere.cpp:35:9: error: 'cout' was not declared in this scope cout << b + c + e; ^ numere.cpp:39:9: error: 'cout' was not declared in this scope cout << b + c + 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ă.