#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 | #61728620 | Utilizator | |
| Fișier | ordonat_neordonat.cpp | Dimensiune | 691 B |
| Data încărcării | 08 Decembrie 2025, 13:10 | Scor/rezultat | 0 puncte |
ordonat_neordonat.cpp:17:28: warning: character constant too long for its type [enabled by default] if(cntco==n-1) cout << 'sir constant'; ^ ordonat_neordonat.cpp:18:56: warning: character constant too long for its type [enabled by default] else{ if(cntcr>0 && cntdc==0) if(cntco==0) cout << 'sir strict crescator'; ^ ordonat_neordonat.cpp:19:30: warning: character constant too long for its type [enabled by default] else cout << 'sir crescator'; ^ ordonat_neordonat.cpp:20:50: warning: character constant too long for its type [enabled by default] if(cntdc>0 && cntcr==0) if(cntco==0) cout << 'sir strict descrescator'; ^ ordonat_neordonat.cpp:21:30: warning: character constant too long for its type [enabled by default] else cout << 'sir descrescator'; ^ ordonat_neordonat.cpp:22:42: warning: character constant too long for its type [enabled by default] if(cntdc>0 && cntcr>0) cout << 'neordonat'; ^ ordonat_neordonat.cpp: In function 'int main()': ordonat_neordonat.cpp:12:20: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(v[i]=v[i-1]) cntco++; ^ ordonat_neordonat.cpp:18:13: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses] else{ if(cntcr>0 && cntdc==0) if(cntco==0) cout << 'sir strict crescator'; ^ ordonat_neordonat.cpp:20:7: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses] if(cntdc>0 && cntcr==0) if(cntco==0) cout << 'sir strict descrescator'; ^
| 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 | Raspuns gresit. | 10 | 0 | ||
| 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 | Raspuns gresit. | 10 | 0 | Exemplu | |
| Punctaj total | 0 | |||||
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ă.