#287
Se dau n şiruri cu elemente numere întregi. Să se verifice despre fiecare dacă este ordonat crescător.
| Problema | VerifOrd | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64817731 | Utilizator | |
| Fișier | veriford.cpp | Dimensiune | 227 B |
| Data încărcării | 03 Iunie 2026, 12:41 | Scor/rezultat | Eroare de compilare |
veriford.cpp: In function ‘int main()’: veriford.cpp:14:9: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 14 | for(j = 0; j < m; j++) | ^~~ veriford.cpp:15:25: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 15 | cin >> v[j]; | ^ veriford.cpp:15:25: error: expected ‘}’ at end of input veriford.cpp:11:5: note: to match this ‘{’ 11 | { | ^ veriford.cpp:15:25: error: expected ‘}’ at end of input 15 | cin >> v[j]; | ^ veriford.cpp:5:1: note: to match this ‘{’ 5 | { | ^ veriford.cpp:6:29: warning: unused variable ‘ok’ [-Wunused-variable] 6 | int n, m, v[500], i, j, ok; | ^~
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema VerifOrd 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ă.