Problem magicwand
User hwy
Submission Time 2023-06-21 15:05:53
Score 0
Max Time N/A
Max Memory N/A

Compile Error

magicwand.cpp: In function ‘bool valid(int, int)’:
magicwand.cpp:10:26: error: ‘h’ was not declared in this scope
10 | return i >= 0 && i < h && j >= 0 && j < w;
| ^
magicwand.cpp:10:45: error: ‘w’ was not declared in this scope
10 | return i >= 0 && i < h && j >= 0 && j < w;
| ^
magicwand.cpp: In function ‘int main()’:
magicwand.cpp:23:12: error: ‘vis’ was not declared in this scope
23 | memset(vis, 0, sizeof(visited));
| ^~~
magicwand.cpp:46:54: error: ‘x’ was not declared in this scope
46 | if (abs(graph[n.first][n.second] - graph[x][y]) <= T) {
| ^
magicwand.cpp:46:57: error: ‘y’ was not declared in this scope
46 | if (abs(graph[n.first][n.second] - graph[x][y]) <= T) {
|