Borderou de evaluare (job #695520)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Axyz (clasa a 7-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 14 feb. 2023 23:25:57 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:24:13: error: 'i' was not declared in this scope
24 | for(i=1; i<=k; i++) cout << v[i];
| ^
main.cpp:25:13: error: 'i' was not declared in this scope
25 | for(i=x; i>k; i--) cout << v[i];
| ^
main.cpp:30:37: warning: unused variable 'ok' [-Wunused-variable]
30 | int cnt1=0, cnt2=0, cnt3=0, ok=0;
| ^~
main.cpp:11:18: warning: unused variable 'y' [-Wunused-variable]
11 | int p, a, x, y, z, t, poz, aux;
| ^
main.cpp:11:21: warning: unused variable 'z' [-Wunused-variable]
11 | int p, a, x, y, z, t, poz, aux;
| ^
main.cpp:11:24: warning: unused variable 't' [-Wunused-variable]
11 | int p, a, x, y, z, t, poz, aux;
| ^