#354
Se dau n
numere întregi. Calculaţi cel mai mare dintre cele n
numere date.
Problema | n_maxim | Operații I/O |
![]() |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #5985030 | Utilizator | |
Fișier | n_maxim.cpp | Dimensiune | 201 B |
Data încărcării | 07 Octombrie 2017, 19:32 | Scor / rezultat | Eroare de compilare |
n_maxim.cpp: In function 'int main()': n_maxim.cpp:7:5: warning: statement has no effect [-Wunused-value] MAX1==0; ^ n_maxim.cpp:8:2: warning: statement has no effect [-Wunused-value] i==1; ^ n_maxim.cpp:9:11: error: expected ';' before ')' token for (i<= n) ^ n_maxim.cpp:9:7: warning: statement has no effect [-Wunused-value] for (i<= n) ^ n_maxim.cpp:19:1: error: expected primary-expression at end of input } ^ n_maxim.cpp:19:1: error: expected ';' at end of input n_maxim.cpp:19:1: error: expected primary-expression at end of input n_maxim.cpp:19:1: error: expected ')' at end of input n_maxim.cpp:19:1: error: expected statement at end of input n_maxim.cpp:19:1: error: expected '}' at end of input
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema n_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ă.