#1879
Se consideră un şir format din n numere naturale nenule. Să se determine lungimea maximă a unei secvenţe strict crescătoare din şirul dat.
| Problema | platou2 | Operații I/O |
platou2.in/platou2.out
|
|---|---|---|---|
| Limita timp | 0.01 secunde | Limita memorie |
Total: 0.3 MB
/
Stivă 0.3 MB
|
| Id soluție | #64514891 | Utilizator | |
| Fișier | platou2.cpp | Dimensiune | 200 B |
| Data încărcării | 12 Mai 2026, 09:19 | Scor/rezultat | Eroare de compilare |
platou2.cpp: In function ‘int main()’: platou2.cpp:9:10: error: ‘i’ was not declared in this scope 9 | for (i=1 ; i<n ; i++) | ^ platou2.cpp:12:9: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 12 | if (x>xmax) x=xmax; | ^~ platou2.cpp:12:28: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 12 | if (x>xmax) x=xmax; | ^ platou2.cpp:12:28: error: expected ‘}’ at end of input platou2.cpp:10:5: note: to match this ‘{’ 10 | { | ^ platou2.cpp:12:28: error: expected ‘}’ at end of input 12 | if (x>xmax) x=xmax; | ^ platou2.cpp:7:1: note: to match this ‘{’ 7 | { | ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema platou2 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ă.