#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 | #31228376 | Utilizator | |
Fișier | numere.cpp | Dimensiune | 455 B |
Data încărcării | 06 Octombrie 2021, 23:35 | Scor / rezultat | Eroare de compilare |
numere.cpp:9:13: warning: character constant too long for its type [enabled by default] if (a<b)'{t=a,a=b,b=t}' ^ numere.cpp:10:13: warning: character constant too long for its type [enabled by default] if (a<c)'{t=a,a=c,c=t}' ^ numere.cpp:11:13: warning: character constant too long for its type [enabled by default] if (a<d)'{t=a,a=d,d=t}' ^ numere.cpp:12:13: warning: character constant too long for its type [enabled by default] if (a<e)'{t=a,a=e,e=t}' ^ numere.cpp:13:13: warning: character constant too long for its type [enabled by default] if (b<c)'{t=b,b=c,c=t}' ^ numere.cpp:14:13: warning: character constant too long for its type [enabled by default] if (b<d)'{t=b,b=d.d=t}' ^ numere.cpp:15:13: warning: character constant too long for its type [enabled by default] if (b<e)'{t=b,b=e,e=t}' ^ numere.cpp:16:13: warning: character constant too long for its type [enabled by default] if (c<d)'{t=c,c=d,d=t}' ^ numere.cpp:17:13: warning: character constant too long for its type [enabled by default] if (c<e)'{t=c,c=e,e=t}' ^ numere.cpp:18:13: warning: character constant too long for its type [enabled by default] if (d<e)'{t=d,d=e,e=t}' ^ numere.cpp: In function 'int main()': numere.cpp:10:5: error: expected ';' before 'if' if (a<c)'{t=a,a=c,c=t}' ^ numere.cpp:19:16: warning: statement has no effect [-Wunused-value] int s=c+d+e; ^ numere.cpp:7:19: warning: unused variable 't' [-Wunused-variable] int a,b,c,d,e,t,s; ^
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ă.