Problem magicwand
User 2110100
Submission Time 2023-06-09 13:23:21
Score 0
Max Time N/A
Max Memory N/A

Compile Error

magicwand.cpp: In function ‘int main()’:
magicwand.cpp:20:30: error: expected ‘;’ before ‘for’
20 | visited[x - 1][y -1] = 1
| ^
| ;
21 | for (int i = 0; i < n; i++) {
| ~~~
magicwand.cpp:21:21: error: ‘i’ was not declared in this scope
21 | for (int i = 0; i < n; i++) {
| ^