#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 | #64629847 | Utilizator | |
| Fișier | nota10.cpp | Dimensiune | 266 B |
| Data încărcării | 19 Mai 2026, 12:48 | Scor/rezultat | Eroare de compilare |
nota10.cpp: In function ‘int main()’: nota10.cpp:8:9: error: ‘sync__with__studio’ was not declared in this scope 8 | ios:sync__with__studio(false);cin tie(0) | ^~~~~~~~~~~~~~~~~~ nota10.cpp:8:38: error: expected ‘;’ before ‘tie’ 8 | ios:sync__with__studio(false);cin tie(0) | ^~~~ | ; nota10.cpp:8:35: warning: statement has no effect [-Wunused-value] 8 | ios:sync__with__studio(false);cin tie(0) | ^~~ nota10.cpp:12:8: error: ‘maxim’ was not declared in this scope; did you mean ‘max’? 12 | if(maxim<x){ | ^~~~~ | max nota10.cpp:17:2: error: expected ‘}’ at end of input 17 | } | ^ nota10.cpp:6:1: note: to match this ‘{’ 6 | { | ^ nota10.cpp:7:13: warning: unused variable ‘max’ [-Wunused-variable] 7 | int n,x,max=0,cnt=0; | ^~~ nota10.cpp:7:19: warning: unused variable ‘cnt’ [-Wunused-variable] 7 | int n,x,max=0,cnt=0; | ^~~ nota10.cpp:8:5: warning: label ‘ios’ defined but not used [-Wunused-label] 8 | ios:sync__with__studio(false);cin tie(0) | ^~~
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ă.