#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 | #53265195 | Utilizator | |
Fișier | numere.cpp | Dimensiune | 479 B |
Data încărcării | 22 Octombrie 2024, 20:04 | Scor / rezultat | 10 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,e) cout <<a+b+c; ^ numere.cpp:7:13: warning: right operand of comma operator has no effect [-Wunused-value] if (a,b,c>d,e) cout <<a+b+c; ^ numere.cpp:7:12: warning: right operand of comma operator has no effect [-Wunused-value] if (a,b,c>d,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,e) cout <<a+b+d; ^ numere.cpp:8:18: warning: right operand of comma operator has no effect [-Wunused-value] else if (a,b,d>c,e) cout <<a+b+d; ^ numere.cpp:8:17: warning: right operand of comma operator has no effect [-Wunused-value] else if (a,b,d>c,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,d) cout <<a+b+e; ^ numere.cpp:9:18: warning: right operand of comma operator has no effect [-Wunused-value] else if (a,b,e>c,d) cout <<a+b+e; ^ numere.cpp:9:17: warning: right operand of comma operator has no effect [-Wunused-value] else if (a,b,e>c,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,e) cout <<a+c+d; ^ numere.cpp:10:18: warning: right operand of comma operator has no effect [-Wunused-value] else if (a,c,d>b,e) cout <<a+c+d; ^ numere.cpp:10:17: warning: right operand of comma operator has no effect [-Wunused-value] else if (a,c,d>b,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,b) cout <<a+d+e; ^ numere.cpp:11:18: warning: right operand of comma operator has no effect [-Wunused-value] else if (a,d,e>c,b) cout <<a+d+e; ^ numere.cpp:11:17: warning: right operand of comma operator has no effect [-Wunused-value] else if (a,d,e>c,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,d) cout <<a+c+e; ^ numere.cpp:12:18: warning: right operand of comma operator has no effect [-Wunused-value] else if (a,c,e>b,d) cout <<a+c+e; ^ numere.cpp:12:17: warning: right operand of comma operator has no effect [-Wunused-value] else if (a,c,e>b,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,e) cout <<b+c+d; ^ numere.cpp:13:18: warning: right operand of comma operator has no effect [-Wunused-value] else if (b,c,d>a,e) cout <<b+c+d; ^ numere.cpp:13:17: warning: right operand of comma operator has no effect [-Wunused-value] else if (b,c,d>a,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,c) cout <<b+d+e; ^ numere.cpp:14:18: warning: right operand of comma operator has no effect [-Wunused-value] else if (b,d,e>a,c) cout <<b+d+e; ^ numere.cpp:14:17: warning: right operand of comma operator has no effect [-Wunused-value] else if (b,d,e>a,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,d) cout <<b+c+e; ^ numere.cpp:15:18: warning: right operand of comma operator has no effect [-Wunused-value] else if (b,c,e>a,d) cout <<b+c+e; ^ numere.cpp:15:17: warning: right operand of comma operator has no effect [-Wunused-value] else if (b,c,e>a,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,b) cout <<c+d+e; ^ numere.cpp:16:18: warning: right operand of comma operator has no effect [-Wunused-value] else if (c,d,e>a,b) cout <<c+d+e; ^ numere.cpp:16:17: warning: right operand of comma operator has no effect [-Wunused-value] else if (c,d,e>a,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 | 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ă.