#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 | #50663744 | Utilizator | |
Fișier | numere.cpp | Dimensiune | 989 B |
Data încărcării | 19 Aprilie 2024, 10:11 | Scor / rezultat | Eroare de compilare |
numere.cpp: In function 'int main()': numere.cpp:10:28: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] if(a >= b and and a >= c and and a >= d and and a >= e) ^ numere.cpp:10:43: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] if(a >= b and and a >= c and and a >= d and and a >= e) ^ numere.cpp:10:58: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] if(a >= b and and a >= c and and a >= d and and a >= e) ^ numere.cpp:12:33: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] else if(b >= a and and b >= c &and and b >= d and and b >= e) ^ numere.cpp:12:40: error: expected identifier before 'and' token else if(b >= a and and b >= c &and and b >= d and and b >= e) ^ numere.cpp:12:64: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] else if(b >= a and and b >= c &and and b >= d and and b >= e) ^ numere.cpp:14:33: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] else if(c >= a and and c >= b and and c >= d and and c >= e) ^ numere.cpp:14:48: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] else if(c >= a and and c >= b and and c >= d and and c >= e) ^ numere.cpp:14:63: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] else if(c >= a and and c >= b and and c >= d and and c >= e) ^ numere.cpp:16:33: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] else if(d >= a and and d >= b &and and d >= c and and d >= e) ^ numere.cpp:16:40: error: expected identifier before 'and' token else if(d >= a and and d >= b &and and d >= c and and d >= e) ^ numere.cpp:16:64: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] else if(d >= a and and d >= b &and and d >= c and and d >= e) ^ numere.cpp:21:28: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] if(a >= b and and a >= c and and a >= d and and a >= e) ^ numere.cpp:21:43: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] if(a >= b and and a >= c and and a >= d and and a >= e) ^ numere.cpp:21:58: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] if(a >= b and and a >= c and and a >= d and and a >= e) ^ numere.cpp:23:33: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] else if(b >= a and and b >= c and and b >= d and and b >= e) ^ numere.cpp:23:48: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] else if(b >= a and and b >= c and and b >= d and and b >= e) ^ numere.cpp:23:63: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] else if(b >= a and and b >= c and and b >= d and and b >= e) ^ numere.cpp:25:33: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] else if(c >= a and and c >= b and and c >= d and and c >= e) ^ numere.cpp:25:48: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] else if(c >= a and and c >= b and and c >= d and and c >= e) ^ numere.cpp:25:63: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] else if(c >= a and and c >= b and and c >= d and and c >= e) ^ numere.cpp:27:33: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] else if(d >= a and and d >= b and and d >= c and and d >= e) ^ numere.cpp:27:48: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] else if(d >= a and and d >= b and and d >= c and and d >= e) ^ numere.cpp:27:63: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] else if(d >= a and and d >= b and and d >= c and and d >= e) ^ numere.cpp:10:23: error: label 'a' used but not defined if(a >= b and and a >= c and and a >= d and and a >= e) ^ numere.cpp:12:28: error: label 'b' used but not defined else if(b >= a and and b >= c &and and b >= d and and b >= e) ^ numere.cpp:14:28: error: label 'c' used but not defined else if(c >= a and and c >= b and and c >= d and and c >= e) ^ numere.cpp:16:28: error: label 'd' used but not defined else if(d >= a and and d >= b &and and d >= c and and d >= e) ^
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ă.