#559
5numere
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 | #50414861 | Utilizator | |
Fișier | numere.cpp | Dimensiune | 414 B |
Data încărcării | 08 Aprilie 2024, 19:46 | Scor / rezultat | Eroare de compilare |
numere.cpp: In function 'int main()': numere.cpp:8:10: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] if (a>b>c>d>e) ^ numere.cpp:8:12: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] if (a>b>c>d>e) ^ numere.cpp:8:14: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] if (a>b>c>d>e) ^ numere.cpp:12:10: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] if (b>c>d>e>a) ^ numere.cpp:12:12: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] if (b>c>d>e>a) ^ numere.cpp:12:14: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] if (b>c>d>e>a) ^ numere.cpp:16:10: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] if (c>d>e>a>b) ^ numere.cpp:16:12: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] if (c>d>e>a>b) ^ numere.cpp:16:14: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] if (c>d>e>a>b) ^ numere.cpp:20:10: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] if (d>e>a>b>c) ^ numere.cpp:20:12: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] if (d>e>a>b>c) ^ numere.cpp:20:14: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] if (d>e>a>b>c) ^ numere.cpp:24:10: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] if (e>a>b>c>d) ^ numere.cpp:24:12: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] if (e>a>b>c>d) ^ numere.cpp:24:14: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] if (e>a>b>c>d) ^ numere.cpp:28:1: error: expected '}' at end of input } ^
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ă.