#1320
ordonat_neordonat
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 | #1817387 | Utilizator | |
Fișier | ordonat_neordonat.cpp | Dimensiune | 892 B |
Data încărcării | 15 Februarie 2016, 12:49 | Scor / rezultat | Eroare de compilare |
ordonat_neordonat.cpp: In function 'int main()': ordonat_neordonat.cpp:25:24: error: 'sc' was not declared in this scope if(a[i]<a[i+1])sc++; ^ ordonat_neordonat.cpp:26:25: error: 'c' was not declared in this scope if(a[i]<=a[i+1])c++; ^ ordonat_neordonat.cpp:27:24: error: 'sd' was not declared in this scope if(a[i]>a[i+1])sd++; ^ ordonat_neordonat.cpp:28:25: error: 'd' was not declared in this scope if(a[i]>=a[i+1])d++; ^ ordonat_neordonat.cpp:29:25: error: 'scn' was not declared in this scope if(a[i]==a[i+1])scn++; ^ ordonat_neordonat.cpp:30:8: error: 'sc' was not declared in this scope if(sc==n-1)cout<<"sir strict crescator"; ^ ordonat_neordonat.cpp:31:17: error: 'c' was not declared in this scope else if(c==n-1)cout<<"sir crescator"; ^ ordonat_neordonat.cpp:32:21: error: 'sd' was not declared in this scope else if(sd==n-1)cout<<"sir strict descrescator"; ^ ordonat_neordonat.cpp:33:25: error: 'd' was not declared in this scope else if(d==n-1)cout<<"sir crescator"; ^ ordonat_neordonat.cpp:34:29: error: 'scn' was not declared in this scope else if(scn==n-1)cout<<"sir constant"; ^ ordonat_neordonat.cpp:36:5: error: expected ';' before 'return' return 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ă.