Borderou de evaluare (job #805500)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Afise (clasa a 8-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 22 ian. 2025 16:28:46 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:8:5: error: 'in' was not declared in this scope; did you mean 'i'?
8 | in >> l >> n >> k;
| ^~
| i
main.cpp:28:5: error: 'out' was not declared in this scope
28 | out << stot + pc - 1 << ' ' << pc;
| ^~~
main.cpp:7:21: warning: unused variable 'sptot' [-Wunused-variable]
7 | int l, n, k, i, sptot = 0, pc = 0, ok = 0, stot = 0, v[1000], vpoz[1000];
| ^~~~~
main.cpp:7:40: warning: unused variable 'ok' [-Wunused-variable]
7 | int l, n, k, i, sptot = 0, pc = 0, ok = 0, stot = 0, v[1000], vpoz[1000];
| ^~