Borderou de evaluare (job #3267027)
Utilizator | Data | 11 ianuarie 2025 01:19:50 | |
---|---|---|---|
Problema | Swap | Status | done |
Runda | cex_4 | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void update(int, int)':
main.cpp:16:24: error: 'n' was not declared in this scope
16 | for (int i=poz; i<=n); i+=ub(i))
| ^
main.cpp:16:25: error: expected ';' before ')' token
16 | for (int i=poz; i<=n); i+=ub(i))
| ^
| ;
main.cpp:16:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
16 | for (int i=poz; i<=n); i+=ub(i))
| ^~~
main.cpp:16:28: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
16 | for (int i=poz; i<=n); i+=ub(i))
| ^
main.cpp:16:28: error: 'i' was not declared in this scope
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !