#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 | #50664567 | Utilizator | |
Fișier | numere.cpp | Dimensiune | 453 B |
Data încărcării | 19 Aprilie 2024, 10:37 | Scor / rezultat | Eroare de compilare |
numere.cpp: In function 'int main()': numere.cpp:9:13: error: 'aux' was not declared in this scope if(a>b){aux=a;a=b;b=aux;} ^ numere.cpp:10:13: error: 'aux' was not declared in this scope if(b>c){aux=b;b=c;c=aux;} ^ numere.cpp:11:13: error: 'aux' was not declared in this scope if(c>d){aux=c;c=d,d=aux;} ^ numere.cpp:12:13: error: 'aux' was not declared in this scope if(d>e){aux=d;d=e;e=aux;} ^ numere.cpp:13:13: error: 'aux' was not declared in this scope if(a>b){aux=a;a=b;b=aux;} ^ numere.cpp:14:13: error: 'aux' was not declared in this scope if(b>c){aux=b;b=c;c=aux;} ^ numere.cpp:15:13: error: 'aux' was not declared in this scope if(c>d){aux=c;c=d;d=aux;} ^ numere.cpp:16:13: error: 'aux' was not declared in this scope if(a>b){aux=a;a=b;b=aux;} ^ numere.cpp:17:13: error: 'aux' was not declared in this scope if(b>c){aux=b;b=c;c=aux;} ^ numere.cpp:18:13: error: 'aux' was not declared in this scope if(a>b){aux=a;a=b;b=aux;} ^
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ă.