| Problem | magicwand |
|---|---|
| User | giangdo2010 |
| Submission Time | 2026-11-02 15:06:49 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
magicwand.cpp: In function ‘int main()’:
magicwand.cpp:24:10: error: invalid types ‘bool[int]’ for array subscript
24 | vis[X][Y]=1;
| ^
magicwand.cpp:28:17: error: ‘class std::queue<std::pair<int, int> >’ has no member named ‘top’; did you mean ‘pop’?
28 | auto [x, y]=q.top(); q.pop();
| ^~~
| pop
magicwand.cpp:32:24: error: ‘ty’ was not declared in this scope; did you mean ‘tx’?
32 | if (tx<1 || H<tx || ty<1 || W<ty) continue;
| ^~
| tx
magicwand.cpp:33:16: error: ‘ty’ was not declared in this scope; did you mean ‘tx’?
33 | if (vis[tx][ty]) continue;
| ^~
| tx
magicwand.cpp:34:14: error: ‘ty’ was not declared in this scope; did you mean ‘tx’?
34 | if (A[tx][ty]<A[X][Y]-T || A[tx][ty]>A[X][Y]+T) continue;
|