#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 | #57934527 | Utilizator | |
Fișier | numere.cpp | Dimensiune | 775 B |
Data încărcării | 03 Mai 2025, 12:41 | Scor / rezultat | 10 puncte |
numere.cpp: In function 'int main()': numere.cpp:15:8: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] if (abc>abd>abe>acd>ace>bcd>bce>bde>cde) cout<<abc; ^ numere.cpp:15:12: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] if (abc>abd>abe>acd>ace>bcd>bce>bde>cde) cout<<abc; ^ numere.cpp:15:16: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] if (abc>abd>abe>acd>ace>bcd>bce>bde>cde) cout<<abc; ^ numere.cpp:15:20: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] if (abc>abd>abe>acd>ace>bcd>bce>bde>cde) cout<<abc; ^ numere.cpp:15:24: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] if (abc>abd>abe>acd>ace>bcd>bce>bde>cde) cout<<abc; ^ numere.cpp:15:28: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] if (abc>abd>abe>acd>ace>bcd>bce>bde>cde) cout<<abc; ^ numere.cpp:15:32: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] if (abc>abd>abe>acd>ace>bcd>bce>bde>cde) cout<<abc; ^ numere.cpp:16:17: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] else if (abd>abe>acd>ace>bcd>bce>bde>cde>abc) cout<<abd; ^ numere.cpp:16:21: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] else if (abd>abe>acd>ace>bcd>bce>bde>cde>abc) cout<<abd; ^ numere.cpp:16:25: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] else if (abd>abe>acd>ace>bcd>bce>bde>cde>abc) cout<<abd; ^ numere.cpp:16:29: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] else if (abd>abe>acd>ace>bcd>bce>bde>cde>abc) cout<<abd; ^ numere.cpp:16:33: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] else if (abd>abe>acd>ace>bcd>bce>bde>cde>abc) cout<<abd; ^ numere.cpp:16:37: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] else if (abd>abe>acd>ace>bcd>bce>bde>cde>abc) cout<<abd; ^ numere.cpp:16:41: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] else if (abd>abe>acd>ace>bcd>bce>bde>cde>abc) cout<<abd; ^ numere.cpp:17:17: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] else if (abe>acd>ace>bcd>bce>bde>cde>abc>abd) cout<<abe; ^ numere.cpp:17:21: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] else if (abe>acd>ace>bcd>bce>bde>cde>abc>abd) cout<<abe; ^ numere.cpp:17:25: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] else if (abe>acd>ace>bcd>bce>bde>cde>abc>abd) cout<<abe; ^ numere.cpp:17:29: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] else if (abe>acd>ace>bcd>bce>bde>cde>abc>abd) cout<<abe; ^ numere.cpp:17:33: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] else if (abe>acd>ace>bcd>bce>bde>cde>abc>abd) cout<<abe; ^ numere.cpp:17:37: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] else if (abe>acd>ace>bcd>bce>bde>cde>abc>abd) cout<<abe; ^ numere.cpp:17:41: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] else if (abe>acd>ace>bcd>bce>bde>cde>abc>abd) cout<<abe; ^ numere.cpp:18:17: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] else if (acd>ace>bcd>bce>bde>cde>abc>abd>abe) cout<<acd; ^ numere.cpp:18:21: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] else if (acd>ace>bcd>bce>bde>cde>abc>abd>abe) cout<<acd; ^ numere.cpp:18:25: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] else if (acd>ace>bcd>bce>bde>cde>abc>abd>abe) cout<<acd; ^ numere.cpp:18:29: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] else if (acd>ace>bcd>bce>bde>cde>abc>abd>abe) cout<<acd; ^ numere.cpp:18:33: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] else if (acd>ace>bcd>bce>bde>cde>abc>abd>abe) cout<<acd; ^ numere.cpp:18:37: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] else if (acd>ace>bcd>bce>bde>cde>abc>abd>abe) cout<<acd; ^ numere.cpp:18:41: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] else if (acd>ace>bcd>bce>bde>cde>abc>abd>abe) cout<<acd; ^ numere.cpp:19:17: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] else if (ace>bcd>bce>bde>cde>abc>abd>abe>acd) cout<<ace; ^ numere.cpp:19:21: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] else if (ace>bcd>bce>bde>cde>abc>abd>abe>acd) cout<<ace; ^ numere.cpp:19:25: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] else if (ace>bcd>bce>bde>cde>abc>abd>abe>acd) cout<<ace; ^ numere.cpp:19:29: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] else if (ace>bcd>bce>bde>cde>abc>abd>abe>acd) cout<<ace; ^ numere.cpp:19:33: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] else if (ace>bcd>bce>bde>cde>abc>abd>abe>acd) cout<<ace; ^ numere.cpp:19:37: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] else if (ace>bcd>bce>bde>cde>abc>abd>abe>acd) cout<<ace; ^ numere.cpp:19:41: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] else if (ace>bcd>bce>bde>cde>abc>abd>abe>acd) cout<<ace; ^ numere.cpp:20:17: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] else if (bcd>bce>bde>cde>abc>abd>abe>acd>ace) cout<<bcd; ^ numere.cpp:20:21: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] else if (bcd>bce>bde>cde>abc>abd>abe>acd>ace) cout<<bcd; ^ numere.cpp:20:25: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] else if (bcd>bce>bde>cde>abc>abd>abe>acd>ace) cout<<bcd; ^ numere.cpp:20:29: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] else if (bcd>bce>bde>cde>abc>abd>abe>acd>ace) cout<<bcd; ^ numere.cpp:20:33: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] else if (bcd>bce>bde>cde>abc>abd>abe>acd>ace) cout<<bcd; ^ numere.cpp:20:37: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] else if (bcd>bce>bde>cde>abc>abd>abe>acd>ace) cout<<bcd; ^ numere.cpp:20:41: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] else if (bcd>bce>bde>cde>abc>abd>abe>acd>ace) cout<<bcd; ^ numere.cpp:21:17: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] else if (bce>bde>cde>abc>abd>abe>acd>ace>bcd) cout<<bce; ^ numere.cpp:21:21: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] else if (bce>bde>cde>abc>abd>abe>acd>ace>bcd) cout<<bce; ^ numere.cpp:21:25: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] else if (bce>bde>cde>abc>abd>abe>acd>ace>bcd) cout<<bce; ^ numere.cpp:21:29: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] else if (bce>bde>cde>abc>abd>abe>acd>ace>bcd) cout<<bce; ^ numere.cpp:21:33: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] else if (bce>bde>cde>abc>abd>abe>acd>ace>bcd) cout<<bce; ^ numere.cpp:21:37: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] else if (bce>bde>cde>abc>abd>abe>acd>ace>bcd) cout<<bce; ^ numere.cpp:21:41: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] else if (bce>bde>cde>abc>abd>abe>acd>ace>bcd) cout<<bce; ^ numere.cpp:22:17: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] else if (bde>cde>abc>abd>abe>acd>ace>bcd>bce) cout<<bde; ^ numere.cpp:22:21: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] else if (bde>cde>abc>abd>abe>acd>ace>bcd>bce) cout<<bde; ^ numere.cpp:22:25: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] else if (bde>cde>abc>abd>abe>acd>ace>bcd>bce) cout<<bde; ^ numere.cpp:22:29: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] else if (bde>cde>abc>abd>abe>acd>ace>bcd>bce) cout<<bde; ^ numere.cpp:22:33: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] else if (bde>cde>abc>abd>abe>acd>ace>bcd>bce) cout<<bde; ^ numere.cpp:22:37: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] else if (bde>cde>abc>abd>abe>acd>ace>bcd>bce) cout<<bde; ^ numere.cpp:22:41: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] else if (bde>cde>abc>abd>abe>acd>ace>bcd>bce) cout<<bde; ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | OK. | 10 | 10 | ||
2 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
3 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
4 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
5 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
6 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
7 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
8 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
9 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
10 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
Punctaj total | 10 |
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ă.