#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 | #64456684 | Utilizator | |
| Fișier | ordonat_neordonat.cpp | Dimensiune | 592 B |
| Data încărcării | 07 Mai 2026, 21:00 | Scor/rezultat | Eroare de compilare |
ordonat_neordonat.cpp:1:1: error: ‘iostream’ does not name a type 1 | iostream> | ^~~~~~~~ ordonat_neordonat.cpp: In function ‘int main()’: ordonat_neordonat.cpp:8:4: error: ‘cin’ was not declared in this scope 8 | cin>>n; | ^~~ ordonat_neordonat.cpp:9:4: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 9 | for(i=1;i<=n;i++) | ^~~ ordonat_neordonat.cpp:11:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 11 | for(i=2;i<=n;i++) | ^~~ ordonat_neordonat.cpp:18:12: error: ‘cout’ was not declared in this scope 18 | if(ok1)cout<<"sir constant"; | ^~~~ ordonat_neordonat.cpp:19:17: error: ‘cout’ was not declared in this scope 19 | else if(ok2)cout<<"sir strict crescator"; | ^~~~ ordonat_neordonat.cpp:20:17: error: ‘cout’ was not declared in this scope 20 | else if(ok3)cout<<"sir crescator"; | ^~~~ ordonat_neordonat.cpp:21:17: error: ‘cout’ was not declared in this scope 21 | else if(ok4)cout<<"sir strict descrescator"; | ^~~~ ordonat_neordonat.cpp:22:17: error: ‘cout’ was not declared in this scope 22 | else if(ok5)cout<<"sir descrescator"; | ^~~~ ordonat_neordonat.cpp:23:10: error: ‘cout’ was not declared in this scope 23 | else cout<<"sir neordonat"; | ^~~~
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ă.