#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 |
![]() |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #58388376 | Utilizator | |
Fișier | ordonat_neordonat.cpp | Dimensiune | 794 B |
Data încărcării | 31 Mai 2025, 12:42 | Scor / rezultat | Eroare de compilare |
ordonat_neordonat.cpp: In function 'int main()': ordonat_neordonat.cpp:14:13: error: 'eg' was not declared in this scope eg=1; ^ ordonat_neordonat.cpp:16:9: error: 'cr' was not declared in this scope cr=1; ^ ordonat_neordonat.cpp:18:13: error: 'dr' was not declared in this scope dr=1; ^ ordonat_neordonat.cpp:20:8: error: 'eg' was not declared in this scope if(eg==1&&cr==0&&dr==0) ^ ordonat_neordonat.cpp:20:15: error: 'cr' was not declared in this scope if(eg==1&&cr==0&&dr==0) ^ ordonat_neordonat.cpp:20:22: error: 'dr' was not declared in this scope if(eg==1&&cr==0&&dr==0) ^ ordonat_neordonat.cpp:22:9: error: expected ';' before 'if' if(eg==1&&cr==1&&dr==0) ^ ordonat_neordonat.cpp:24:8: error: 'eg' was not declared in this scope if(eg==0&&cr==1&&dr==0) ^ ordonat_neordonat.cpp:24:15: error: 'cr' was not declared in this scope if(eg==0&&cr==1&&dr==0) ^ ordonat_neordonat.cpp:24:22: error: 'dr' was not declared in this scope if(eg==0&&cr==1&&dr==0) ^ ordonat_neordonat.cpp:26:8: error: 'eg' was not declared in this scope if(eg==1&&cr==0&&dr==1) ^ ordonat_neordonat.cpp:26:15: error: 'cr' was not declared in this scope if(eg==1&&cr==0&&dr==1) ^ ordonat_neordonat.cpp:26:22: error: 'dr' was not declared in this scope if(eg==1&&cr==0&&dr==1) ^ ordonat_neordonat.cpp:28:8: error: 'eg' was not declared in this scope if(eg==0&&cr==0&&dr==1) ^ ordonat_neordonat.cpp:28:15: error: 'cr' was not declared in this scope if(eg==0&&cr==0&&dr==1) ^ ordonat_neordonat.cpp:28:22: error: 'dr' was not declared in this scope if(eg==0&&cr==0&&dr==1) ^ ordonat_neordonat.cpp:30:8: error: 'eg' was not declared in this scope if(eg==1&&cr==1&&dr==1) ^ ordonat_neordonat.cpp:30:15: error: 'cr' was not declared in this scope if(eg==1&&cr==1&&dr==1) ^ ordonat_neordonat.cpp:30:22: error: 'dr' was not declared in this scope if(eg==1&&cr==1&&dr==1) ^ ordonat_neordonat.cpp:32:12: error: 'eg' was not declared in this scope if(eg==0&&cr==1&&dr==1) ^ ordonat_neordonat.cpp:32:19: error: 'cr' was not declared in this scope if(eg==0&&cr==1&&dr==1) ^ ordonat_neordonat.cpp:32:26: error: 'dr' was not declared in this scope if(eg==0&&cr==1&&dr==1) ^
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ă.