Borderou de evaluare (job #3365129)
| Utilizator | Data | 17 septembrie 2026 10:48:27 | |
|---|---|---|---|
| Problema | Mapal | Status | done |
| Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void schimba(int, int)':
main.cpp:22:23: error: use of an operand of type 'bool' in 'operator++' is forbidden in C++17
22 | vizit[lin][col]++;
| ~~~~~~~~~~~~~~^
main.cpp:23:27: error: use of an operand of type 'bool' in 'operator++' is forbidden in C++17
23 | vizit[lin][n-col+1]++;
| ~~~~~~~~~~~~~~~~~~^
main.cpp:28:31: error: use of an operand of type 'bool' in 'operator++' is forbidden in C++17
28 | vizit[n-lin+1][n-col+1]++;
| ~~~~~~~~~~~~~~~~~~~~~~^
main.cpp:33:27: error: use of an operand of type 'bool' in 'operator++' is forbidden in C++17
33 | vizit[n-lin+1][col]++;
| ~~~~~~~~~~~~~~~~~~^
main.cpp:13:8: warning: unused variable 'i' [-Wunused-variable]
13 | int i, j, l, c, nr[2] = {0,0};
| ^
main.cpp:13:11: warning: unused variable 'j' [-Wunused-variable]
13 | int i, j, l, c, nr[2] = {0,0};
| ^
main.cpp:13:14: warning: unused variable 'l' [-Wunused-variable]
13 | int i, j, l, c, nr[2] = {0,0};
| ^
main.cpp:13:17: warning: unused variable 'c' [-Wunused-variable]
13 | int i, j, l, c, nr[2] = {0,0};
| ^
main.cpp:14:9: warning: unused variable 'matt' [-Wunused-variable]
14 | bool matt[2][2] = {{0,0}, {0,0}}, h=1;
| ^~~~
main.cpp:14:38: warning: unused variable 'h' [-Wunused-variable]
14 | bool matt[2][2] = {{0,0}, {0,0}}, h=1;
| ^
main.cpp: In function 'int32_t main()':
main.cpp:42:22: warning: unused variable 'nr' [-Wunused-variable]
42 | int i, j, x, lg, nr=0;
| ^~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
