#4809
Se dă un număr n și apoi un șir cu n elemente, numere naturale nenule. Să se determine câte dintre numerele din șir sunt strict mai mari decât precedentele lor.
adhoc
| Problema | nota10 | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.2 secunde | Limita memorie |
Total: 1 MB
/
Stivă 1 MB
|
| Id soluție | #62891619 | Utilizator | |
| Fișier | nota10.cpp | Dimensiune | 221 B |
| Data încărcării | 05 Februarie 2026, 12:32 | Scor/rezultat | Eroare de compilare |
nota10.cpp: In function 'int main()': nota10.cpp:6:30: error: expected ')' before ';' token (ios::sync_with_stdio(false); cin.tie(0);) ^ nota10.cpp:6:43: error: expected primary-expression before ')' token (ios::sync_with_stdio(false); cin.tie(0);) ^ nota10.cpp:6:43: error: expected ';' before ')' token nota10.cpp:7:12: warning: statement has no effect [-Wunused-value] for(i=0; i<=n-1; i++) ^ nota10.cpp:7:22: error: expected ';' before ')' token for(i=0; i<=n-1; i++) ^ nota10.cpp:15:1: error: expected '}' at end of input } ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema nota10 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ă.