#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 | #57364801 | Utilizator | |
Fișier | ordonat_neordonat.cpp | Dimensiune | 1.60 KB |
Data încărcării | 27 Martie 2025, 15:41 | Scor / rezultat | 20 puncte |
ordonat_neordonat.cpp: In function 'int main()': ordonat_neordonat.cpp:12:17: warning: variable 'ok1' set but not used [-Wunused-but-set-variable] int ok1 = 1; //pp ca este strict desc ^ ordonat_neordonat.cpp:13:18: warning: variable 'ok2' set but not used [-Wunused-but-set-variable] int ok2 = 1; //pp ca este desc ^ ordonat_neordonat.cpp:35:14: warning: variable 'ok1' set but not used [-Wunused-but-set-variable] int ok1 = 1; //pp ca este strict cresc ^ ordonat_neordonat.cpp:36:16: warning: variable 'ok2' set but not used [-Wunused-but-set-variable] int ok2 = 1; //pp ca este cresc ^ ordonat_neordonat.cpp:23:13: warning: 'ok1' is used uninitialized in this function [-Wuninitialized] if(ok1 == 1) ^ ordonat_neordonat.cpp:28:13: warning: 'ok2' may be used uninitialized in this function [-Wmaybe-uninitialized] if(ok2 == 1) ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
2 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
3 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
4 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
5 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
6 | 0 secunde | OK. | 10 | 10 | ||
7 | 0 secunde | Raspuns gresit. | 10 | 0 | Exemplu | |
8 | 0 secunde | Raspuns gresit. | 10 | 0 | Exemplu | |
9 | 0 secunde | Raspuns gresit. | 10 | 0 | Exemplu | |
10 | 0 secunde | OK. | 10 | 10 | Exemplu | |
Punctaj total | 20 |
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ă.