Problem mining
User helloworld
Submission Time 2024-04-08 14:44:30
Score 0
Max Time N/A
Max Memory N/A

Compile Error

mining.cpp: In function ‘int main()’:
mining.cpp:30:26: error: ‘dxi’ was not declared in this scope; did you mean ‘dx’?
30 | int nx = x + dxi], ny = y + dy[i];
| ^~~
| dx
mining.cpp:31:37: error: ‘ny’ was not declared in this scope; did you mean ‘nx’?
31 | if(nx < 0 || nx >= r || ny < 0 || ny >= c || vis[nx][ny] || m[nx][ny] == 'B') continue;
| ^~
| nx
mining.cpp:32:21: error: ‘ny’ was not declared in this scope; did you mean ‘nx’?
32 | vis[nx][ny] = 1;
| ^~
| nx