#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 | #65023060 | Utilizator | |
| Fișier | nota10.cpp | Dimensiune | 538 B |
| Data încărcării | 18 Iulie 2026, 11:41 | Scor/rezultat | 0 puncte |
nota10.cpp: In function ‘int main()’: nota10.cpp:16:9: warning: this ‘else’ clause does not guard... [-Wmisleading-indentation] 16 | else | ^~~~ nota10.cpp:18:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘else’ 18 | cout << v[i] << " " << ct << " "; | ^~~~ nota10.cpp:21:19: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 21 | if(strict = false) | ~~~~~~~^~~~~~~ nota10.cpp:20:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 20 | for(int i = 1; i <= n; ++i) | ^~~ nota10.cpp:25:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 25 | cout << ct; | ^~~~
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.002 secunde | Raspuns gresit. | 10 | 0 | ||
| 2 | 0.002 secunde | Raspuns gresit. | 10 | 0 | ||
| 3 | 0.002 secunde | Raspuns gresit. | 10 | 0 | ||
| 4 | 0.002 secunde | Raspuns gresit. | 10 | 0 | ||
| 5 | 0.003 secunde | Caught fatal signal 11 | 10 | 0 | ||
| 6 | 0.003 secunde | Caught fatal signal 11 | 10 | 0 | ||
| 7 | 0.002 secunde | Caught fatal signal 11 | 20 | 0 | ||
| 8 | 0.003 secunde | Caught fatal signal 11 | 20 | 0 | ||
| Punctaj total | 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ă.