#1320
Să se verifice dacă in șir este: șir constant, șir strict crescător, șir crescător, șir strict descrescător, șir descrescător, șir neordonat.
| Problema | ordonat_neordonat | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64886522 | Utilizator | |
| Fișier | ordonat_neordonat.cpp | Dimensiune | 998 B |
| Data încărcării | 09 Iunie 2026, 16:14 | Scor/rezultat | Eroare de compilare |
ordonat_neordonat.cpp: In function ‘int main()’: ordonat_neordonat.cpp:17:13: error: ‘constant’ was not declared in this scope; did you mean ‘const’? 17 | constant=false; | ^~~~~~~~ | const ordonat_neordonat.cpp:19:9: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 19 | if (x <= prev) | ^~ ordonat_neordonat.cpp:22:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 22 | if (x<prev) | ^~ ordonat_neordonat.cpp:22:13: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] ordonat_neordonat.cpp:25:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 25 | if (x>= prev) | ^~
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema ordonat_neordonat 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ă.