Detalii evaluare #53265195

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 #53265195 Utilizator Panturu Clara Maria (ClaraPanturu_10)
Fișier numere.cpp Dimensiune 479 B
Data încărcării 22 Octombrie 2024, 20:04 Scor / rezultat 10 puncte

Evaluare


Mesaj compilare

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;

                 ^

Rezultat evaluare

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

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