Detalii evaluare #50663744

Rezumat problemă

Se dau 5 numere distincte. Să se determine suma celor mai mari 3 dintre ele.

Detalii

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 Baltatu Roberta (BaltatuRoberta)
Fișier numere.cpp Dimensiune 989 B
Data încărcării 19 Aprilie 2024, 10:11 Scor / rezultat Eroare de compilare

Evaluare


Mesaj 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)

                            ^

Cum funcționează evaluarea?

www.pbinfo.ro permite evaluarea a două tipuri de probleme:

  • probleme la care rezolvarea presupune scrierea unui program complet
  • probleme la care rezolvarea presupune scrierea unei secvențe de program - câteva instrucțiuni, o listă de declarații, una sau mai multe funcții, etc.

Problema 5numere face parte din prima categorie. Soluția propusă de tine va fi evaluată astfel:

  • Programul sursă este compilat folosind compilatorul corespunzător. Dacă în urma compilării se obțin erori sau avertismente, acestea sunt afișate în această pagină.
  • Dacă programul a fost compilat, executabilul obținut va fi rulat, furnizându-i-se unul sau mai multe seturi de date de intrare, în concordanță cu restricțiile specifice problemei. Pentru fiecare set de date se obține un anumit punctaj, în raport cu corectitudinea soluției tale.

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ă.