#54
Maxim
Se citesc numere de la tastatură până la apariția lui zero. Să se determine maximul lor.
Problema | Maxim | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #21074780 | Utilizator | |
Fișier | maxim.cpp | Dimensiune | 302 B |
Data încărcării | 19 Februarie 2020, 11:48 | Scor / rezultat | Eroare de compilare |
maxim.cpp:6:1: error: stray '\302' in program int x,max=0; ^ maxim.cpp:6:1: error: stray '\240' in program maxim.cpp:6:1: error: stray '\302' in program maxim.cpp:6:1: error: stray '\240' in program maxim.cpp:7:1: error: stray '\302' in program cin>>x; max=x; ^ maxim.cpp:7:1: error: stray '\240' in program maxim.cpp:7:1: error: stray '\302' in program maxim.cpp:7:1: error: stray '\240' in program maxim.cpp:8:1: error: stray '\302' in program if(x==0) ^ maxim.cpp:8:1: error: stray '\240' in program maxim.cpp:8:1: error: stray '\302' in program maxim.cpp:8:1: error: stray '\240' in program maxim.cpp:9:1: error: stray '\302' in program cout<<"NU EXISTA"; ^ maxim.cpp:9:1: error: stray '\240' in program maxim.cpp:9:1: error: stray '\302' in program maxim.cpp:9:1: error: stray '\240' in program maxim.cpp:9:1: error: stray '\302' in program maxim.cpp:9:1: error: stray '\240' in program maxim.cpp:10:1: error: stray '\302' in program else ^ maxim.cpp:10:1: error: stray '\240' in program maxim.cpp:12:1: error: stray '\302' in program while(cin>>x && x!=0) ^ maxim.cpp:12:1: error: stray '\240' in program maxim.cpp:12:1: error: stray '\302' in program maxim.cpp:12:1: error: stray '\240' in program maxim.cpp:13:1: error: stray '\302' in program { ^ maxim.cpp:13:1: error: stray '\240' in program maxim.cpp:13:1: error: stray '\302' in program maxim.cpp:13:1: error: stray '\240' in program maxim.cpp:14:1: error: stray '\302' in program if(x>max) ^ maxim.cpp:14:1: error: stray '\240' in program maxim.cpp:14:1: error: stray '\302' in program maxim.cpp:14:1: error: stray '\240' in program maxim.cpp:14:1: error: stray '\302' in program maxim.cpp:14:1: error: stray '\240' in program maxim.cpp:14:1: error: stray '\302' in program maxim.cpp:14:1: error: stray '\240' in program maxim.cpp:14:1: error: stray '\302' in program maxim.cpp:14:1: error: stray '\240' in program maxim.cpp:14:1: error: stray '\302' in program maxim.cpp:14:1: error: stray '\240' in program maxim.cpp:14:1: error: stray '\302' in program maxim.cpp:14:1: error: stray '\240' in program maxim.cpp:14:1: error: stray '\302' in program maxim.cpp:14:1: error: stray '\240' in program maxim.cpp:15:1: error: stray '\302' in program max=x; ^ maxim.cpp:15:1: error: stray '\240' in program maxim.cpp:15:1: error: stray '\302' in program maxim.cpp:15:1: error: stray '\240' in program maxim.cpp:15:1: error: stray '\302' in program maxim.cpp:15:1: error: stray '\240' in program maxim.cpp:15:1: error: stray '\302' in program maxim.cpp:15:1: error: stray '\240' in program maxim.cpp:15:1: error: stray '\302' in program maxim.cpp:15:1: error: stray '\240' in program maxim.cpp:15:1: error: stray '\302' in program maxim.cpp:15:1: error: stray '\240' in program maxim.cpp:15:1: error: stray '\302' in program maxim.cpp:15:1: error: stray '\240' in program maxim.cpp:15:1: error: stray '\302' in program maxim.cpp:15:1: error: stray '\240' in program maxim.cpp:15:1: error: stray '\302' in program maxim.cpp:15:1: error: stray '\240' in program maxim.cpp:16:1: error: stray '\302' in program } ^ maxim.cpp:16:1: error: stray '\240' in program maxim.cpp:16:1: error: stray '\302' in program maxim.cpp:16:1: error: stray '\240' in program maxim.cpp:17:1: error: stray '\302' in program cout<<max; ^ maxim.cpp:17:1: error: stray '\240' in program
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Maxim 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ă.