#119
2maxim
Să se scrie un program care citește un șir de n
numere naturale şi determină cele mai mari două numere din şir.
Problema | 2maxim | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #16090372 | Utilizator | |
Fișier | 2maxim.cpp | Dimensiune | 316 B |
Data încărcării | 02 Iunie 2019, 23:17 | Scor / rezultat | Eroare de compilare |
2maxim.cpp:3:1: error: stray '\302' in program int main(){ ^ 2maxim.cpp:3:1: error: stray '\240' in program 2maxim.cpp:3:1: error: stray '\302' in program 2maxim.cpp:3:1: error: stray '\240' in program 2maxim.cpp:4:1: error: stray '\302' in program int n, a, x , y; ^ 2maxim.cpp:4:1: error: stray '\240' in program 2maxim.cpp:4:1: error: stray '\302' in program 2maxim.cpp:4:1: error: stray '\240' in program 2maxim.cpp:5:1: error: stray '\302' in program cin >> n >> a; ^ 2maxim.cpp:5:1: error: stray '\240' in program 2maxim.cpp:5:1: error: stray '\302' in program 2maxim.cpp:5:1: error: stray '\240' in program 2maxim.cpp:6:1: error: stray '\302' in program x = y =a; ^ 2maxim.cpp:6:1: error: stray '\240' in program 2maxim.cpp:6:1: error: stray '\302' in program 2maxim.cpp:6:1: error: stray '\240' in program 2maxim.cpp:7:1: error: stray '\302' in program for(int i=1; i<n; i++) { ^ 2maxim.cpp:7:1: error: stray '\240' in program 2maxim.cpp:7:1: error: stray '\302' in program 2maxim.cpp:7:1: error: stray '\240' in program 2maxim.cpp:7:1: error: stray '\302' in program 2maxim.cpp:7:1: error: stray '\240' in program 2maxim.cpp:7:1: error: stray '\302' in program 2maxim.cpp:7:1: error: stray '\240' in program 2maxim.cpp:7:1: error: stray '\302' in program 2maxim.cpp:7:1: error: stray '\240' in program 2maxim.cpp:7:1: error: stray '\302' in program 2maxim.cpp:7:1: error: stray '\240' in program 2maxim.cpp:8:1: error: stray '\302' in program cin >> a; ^ 2maxim.cpp:8:1: error: stray '\240' in program 2maxim.cpp:8:1: error: stray '\302' in program 2maxim.cpp:8:1: error: stray '\240' in program 2maxim.cpp:8:1: error: stray '\302' in program 2maxim.cpp:8:1: error: stray '\240' in program 2maxim.cpp:8:1: error: stray '\302' in program 2maxim.cpp:8:1: error: stray '\240' in program 2maxim.cpp:9:1: error: stray '\302' in program if(a>x) y = x, x = a; ^ 2maxim.cpp:9:1: error: stray '\240' in program 2maxim.cpp:9:1: error: stray '\302' in program 2maxim.cpp:9:1: error: stray '\240' in program 2maxim.cpp:9:1: error: stray '\302' in program 2maxim.cpp:9:1: error: stray '\240' in program 2maxim.cpp:9:1: error: stray '\302' in program 2maxim.cpp:9:1: error: stray '\240' in program 2maxim.cpp:10:1: error: stray '\302' in program else if(a >y) y = a; ^ 2maxim.cpp:10:1: error: stray '\240' in program 2maxim.cpp:10:1: error: stray '\302' in program 2maxim.cpp:10:1: error: stray '\240' in program 2maxim.cpp:11:1: error: stray '\302' in program } ^ 2maxim.cpp:11:1: error: stray '\240' in program 2maxim.cpp:11:1: error: stray '\302' in program 2maxim.cpp:11:1: error: stray '\240' in program 2maxim.cpp:12:1: error: stray '\302' in program cout << x << " " << y << endl; ^ 2maxim.cpp:12:1: error: stray '\240' in program 2maxim.cpp:12:1: error: stray '\302' in program 2maxim.cpp:12:1: error: stray '\240' in program
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema 2maxim 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ă.