#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 | #64629313 | Utilizator | |
| Fișier | nota10.cpp | Dimensiune | 256 B |
| Data încărcării | 19 Mai 2026, 12:39 | Scor/rezultat | Eroare de compilare |
nota10.cpp:5:1: error: expected initializer before ‘}’ token 5 | } | ^ nota10.cpp:5:1: error: expected declaration before ‘}’ token nota10.cpp:7:4: error: specializing member ‘std::basic_ios<char>::sync_with_stdio’ requires ‘template<>’ syntax 7 | ios::sync_with_stdio(false); cin.tie(0); | ^~~ nota10.cpp:7:33: error: ‘cin’ does not name a type 7 | ios::sync_with_stdio(false); cin.tie(0); | ^~~ nota10.cpp:8:9: error: ‘cin’ does not name a type 8 | cin>>n; | ^~~ nota10.cpp:9:1: error: expected unqualified-id before ‘while’ 9 | while(n--){ | ^~~~~ nota10.cpp:16:1: error: ‘cout’ does not name a type 16 | cout<<cnt; | ^~~~ nota10.cpp:17:3: error: expected unqualified-id before ‘return’ 17 | return 0; | ^~~~~~ nota10.cpp:18:1: error: expected unqualified-id before ‘{’ token 18 | { | ^
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ă.