#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 | #1111552 | Utilizator | |
Fișier | 5numere.cpp | Dimensiune | 714 B |
Data încărcării | 07 Noiembrie 2015, 17:32 | Scor / rezultat | Eroare de compilare |
5numere.cpp: In function 'int main()': 5numere.cpp:36:5: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] if(a>b>c>d>e) ^ 5numere.cpp:36:7: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] if(a>b>c>d>e) ^ 5numere.cpp:36:9: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] if(a>b>c>d>e) ^ 5numere.cpp:39:5: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] if(d>e>c>b>a) ^ 5numere.cpp:39:7: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] if(d>e>c>b>a) ^ 5numere.cpp:39:9: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] if(d>e>c>b>a) ^ 5numere.cpp:42:9: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] if(d>a>b>c>e) ^ 5numere.cpp:42:11: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] if(d>a>b>c>e) ^ 5numere.cpp:42:13: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] if(d>a>b>c>e) ^ 5numere.cpp:45:9: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] if(e>a>c>b>d) ^ 5numere.cpp:45:11: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] if(e>a>c>b>d) ^ 5numere.cpp:45:13: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] if(e>a>c>b>d) ^ 5numere.cpp:47:10: error: expected ';' before 's' cout s; ^ 5numere.cpp:47:11: warning: statement has no effect [-Wunused-value] cout s; ^
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ă.