#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 | #53265425 | Utilizator | |
Fișier | numere.cpp | Dimensiune | 571 B |
Data încărcării | 22 Octombrie 2024, 20:10 | Scor / rezultat | 20 puncte |
numere.cpp: In function 'int main()': numere.cpp:7:9: warning: left operand of comma operator has no effect [-Wunused-value] if (a,b,c>d && a,b,c>e) cout <<a+b+c; ^ numere.cpp:7:18: warning: right operand of comma operator has no effect [-Wunused-value] if (a,b,c>d && a,b,c>e) cout <<a+b+c; ^ numere.cpp:7:15: warning: right operand of comma operator has no effect [-Wunused-value] if (a,b,c>d && a,b,c>e) cout <<a+b+c; ^ numere.cpp:7:24: warning: right operand of comma operator has no effect [-Wunused-value] if (a,b,c>d && a,b,c>e) cout <<a+b+c; ^ numere.cpp:8:14: warning: left operand of comma operator has no effect [-Wunused-value] else if (a,b,d>c && a,b,d>e) cout <<a+b+d; ^ numere.cpp:8:23: warning: right operand of comma operator has no effect [-Wunused-value] else if (a,b,d>c && a,b,d>e) cout <<a+b+d; ^ numere.cpp:8:20: warning: right operand of comma operator has no effect [-Wunused-value] else if (a,b,d>c && a,b,d>e) cout <<a+b+d; ^ numere.cpp:8:29: warning: right operand of comma operator has no effect [-Wunused-value] else if (a,b,d>c && a,b,d>e) cout <<a+b+d; ^ numere.cpp:9:14: warning: left operand of comma operator has no effect [-Wunused-value] else if (a,b,e>c && a,b,e>d) cout <<a+b+e; ^ numere.cpp:9:23: warning: right operand of comma operator has no effect [-Wunused-value] else if (a,b,e>c && a,b,e>d) cout <<a+b+e; ^ numere.cpp:9:20: warning: right operand of comma operator has no effect [-Wunused-value] else if (a,b,e>c && a,b,e>d) cout <<a+b+e; ^ numere.cpp:9:29: warning: right operand of comma operator has no effect [-Wunused-value] else if (a,b,e>c && a,b,e>d) cout <<a+b+e; ^ numere.cpp:10:14: warning: left operand of comma operator has no effect [-Wunused-value] else if (a,c,d>b && a,c,d>e) cout <<a+c+d; ^ numere.cpp:10:23: warning: right operand of comma operator has no effect [-Wunused-value] else if (a,c,d>b && a,c,d>e) cout <<a+c+d; ^ numere.cpp:10:20: warning: right operand of comma operator has no effect [-Wunused-value] else if (a,c,d>b && a,c,d>e) cout <<a+c+d; ^ numere.cpp:10:29: warning: right operand of comma operator has no effect [-Wunused-value] else if (a,c,d>b && a,c,d>e) cout <<a+c+d; ^ numere.cpp:11:14: warning: left operand of comma operator has no effect [-Wunused-value] else if (a,d,e>c && a,d,e>b) cout <<a+d+e; ^ numere.cpp:11:23: warning: right operand of comma operator has no effect [-Wunused-value] else if (a,d,e>c && a,d,e>b) cout <<a+d+e; ^ numere.cpp:11:20: warning: right operand of comma operator has no effect [-Wunused-value] else if (a,d,e>c && a,d,e>b) cout <<a+d+e; ^ numere.cpp:11:29: warning: right operand of comma operator has no effect [-Wunused-value] else if (a,d,e>c && a,d,e>b) cout <<a+d+e; ^ numere.cpp:12:14: warning: left operand of comma operator has no effect [-Wunused-value] else if (a,c,e>b && a,c,e>d) cout <<a+c+e; ^ numere.cpp:12:23: warning: right operand of comma operator has no effect [-Wunused-value] else if (a,c,e>b && a,c,e>d) cout <<a+c+e; ^ numere.cpp:12:20: warning: right operand of comma operator has no effect [-Wunused-value] else if (a,c,e>b && a,c,e>d) cout <<a+c+e; ^ numere.cpp:12:29: warning: right operand of comma operator has no effect [-Wunused-value] else if (a,c,e>b && a,c,e>d) cout <<a+c+e; ^ numere.cpp:13:14: warning: left operand of comma operator has no effect [-Wunused-value] else if (b,c,d>a && b,c,d>e) cout <<b+c+d; ^ numere.cpp:13:23: warning: right operand of comma operator has no effect [-Wunused-value] else if (b,c,d>a && b,c,d>e) cout <<b+c+d; ^ numere.cpp:13:20: warning: right operand of comma operator has no effect [-Wunused-value] else if (b,c,d>a && b,c,d>e) cout <<b+c+d; ^ numere.cpp:13:29: warning: right operand of comma operator has no effect [-Wunused-value] else if (b,c,d>a && b,c,d>e) cout <<b+c+d; ^ numere.cpp:14:14: warning: left operand of comma operator has no effect [-Wunused-value] else if (b,d,e>a && b,d,e>c) cout <<b+d+e; ^ numere.cpp:14:23: warning: right operand of comma operator has no effect [-Wunused-value] else if (b,d,e>a && b,d,e>c) cout <<b+d+e; ^ numere.cpp:14:20: warning: right operand of comma operator has no effect [-Wunused-value] else if (b,d,e>a && b,d,e>c) cout <<b+d+e; ^ numere.cpp:14:29: warning: right operand of comma operator has no effect [-Wunused-value] else if (b,d,e>a && b,d,e>c) cout <<b+d+e; ^ numere.cpp:15:14: warning: left operand of comma operator has no effect [-Wunused-value] else if (b,c,e>a && b,c,e>d) cout <<b+c+e; ^ numere.cpp:15:23: warning: right operand of comma operator has no effect [-Wunused-value] else if (b,c,e>a && b,c,e>d) cout <<b+c+e; ^ numere.cpp:15:20: warning: right operand of comma operator has no effect [-Wunused-value] else if (b,c,e>a && b,c,e>d) cout <<b+c+e; ^ numere.cpp:15:29: warning: right operand of comma operator has no effect [-Wunused-value] else if (b,c,e>a && b,c,e>d) cout <<b+c+e; ^ numere.cpp:16:14: warning: left operand of comma operator has no effect [-Wunused-value] else if (c,d,e>a && c,d,e>b) cout <<c+d+e; ^ numere.cpp:16:23: warning: right operand of comma operator has no effect [-Wunused-value] else if (c,d,e>a && c,d,e>b) cout <<c+d+e; ^ numere.cpp:16:20: warning: right operand of comma operator has no effect [-Wunused-value] else if (c,d,e>a && c,d,e>b) cout <<c+d+e; ^ numere.cpp:16:29: warning: right operand of comma operator has no effect [-Wunused-value] else if (c,d,e>a && c,d,e>b) cout <<c+d+e; ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
2 | 0 secunde | OK. | 10 | 10 | ||
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 | OK. | 10 | 10 | ||
9 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
10 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
Punctaj total | 20 |
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ă.