#559
Se dau 5 numere distincte. Să se determine suma celor mai mari 3 dintre ele.
Problema | 5numere | Operații I/O |
![]() |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #54817094 | Utilizator | |
Fișier | numere.cpp | Dimensiune | 1.07 KB |
Data încărcării | 09 Decembrie 2024, 15:47 | Scor / rezultat | Eroare de compilare |
numere.cpp: In function 'int main()': numere.cpp:8:14: error: expected initializer before '==' token int maxi1==0; ^ numere.cpp:10:9: error: 'maxi1' was not declared in this scope maxi1=a,a=0; ^ numere.cpp:12:9: error: 'maxi1' was not declared in this scope maxi1=b,b=0; ^ numere.cpp:14:9: error: 'maxi1' was not declared in this scope maxi1=c,c=0; ^ numere.cpp:16:9: error: 'maxi1' was not declared in this scope maxi1=d,d=0; ^ numere.cpp:18:13: error: 'maxi1' was not declared in this scope maxi1=e,e=0; ^ numere.cpp:19:14: error: expected initializer before '==' token int maxi2==0; ^ numere.cpp:21:9: error: 'maxi2' was not declared in this scope maxi2=a,a=0; ^ numere.cpp:23:9: error: 'maxi2' was not declared in this scope maxi2=b,b=0; ^ numere.cpp:25:9: error: 'maxi2' was not declared in this scope maxi2=c,c=0; ^ numere.cpp:27:9: error: 'maxi2' was not declared in this scope maxi2=d,d=0; ^ numere.cpp:29:13: error: 'maxi2' was not declared in this scope maxi2=e,e=0; ^ numere.cpp:30:18: error: expected initializer before '==' token int maxi3==0; ^ numere.cpp:32:9: error: 'maxi3' was not declared in this scope maxi3=a,a=0; ^ numere.cpp:34:9: error: 'maxi3' was not declared in this scope maxi3=b,b=0; ^ numere.cpp:36:9: error: 'maxi3' was not declared in this scope maxi3=c,c=0; ^ numere.cpp:38:9: error: 'maxi3' was not declared in this scope maxi3=d,d=0; ^ numere.cpp:40:13: error: 'maxi3' was not declared in this scope maxi3=e,e=0; ^
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ă.