Problem magicwand
User StormyGood
Submission Time 2025-12-28 14:18:34
Score 0
Max Time N/A
Max Memory N/A

Compile Error

magicwand.cpp: In function ‘int main()’:
magicwand.cpp:28:25: error: ‘xmove’ was not declared in this scope; did you mean ‘remove’?
28 | int newx = curx + xmove[i];
| ^~~~~
| remove
magicwand.cpp:29:25: error: ‘ymove’ was not declared in this scope; did you mean ‘remove’?
29 | int newy = cury + ymove[i];
| ^~~~~
| remove
magicwand.cpp:30:72: error: ‘j’ was not declared in this scope
30 | if (newx>h||newx<1||newy>w||newy<1||grid[newx][newy]>t||final[i][j]!=0) continue;
| ^