answer.code: In function ‘bool works(int)’:
answer.code:31:27: error: ‘class std::queue<std::pair<int, int> >’ has no member named ‘top’; did you mean ‘pop’?
31 | int x = q.top().first; y = q.top().second;
| ^~~
| pop
answer.code:31:40: error: ‘y’ was not declared in this scope
31 | int x = q.top().first; y = q.top().second;
| ^
answer.code:31:46: error: ‘class std::queue<std::pair<int, int> >’ has no member named ‘top’; did you mean ‘pop’?
31 | int x = q.top().first; y = q.top().second;
| ^~~
| pop
answer.code:37:17: error: ‘dx’ was not declared in this scope; did you mean ‘x’?
37 | dx = {0, 0, 1, -1};
| ^~
| x
answer.code:38:17: error: ‘dy’ was not declared in this scope
38 | dy = {1, -1, 0, 0};
| ^~
answer.code:41:58: error: ‘ny’ was not declared in this scope; did you mean ‘nx’?
41 | if (nx > 0 && nx <= n - s + 1 && ny > 0 && ny <= m - s + 1 && !visited[nx][ny] && prefixsum[nx + s - 1] [ny + s- 1] - prefixsum[nx + s - 1][nx - 1] - prefixsum[ny - 1][ny + s - 1] + prefixsum[nx - 1][ny - 1] == 0) {
| ^~
| nx
answer.code:42:39: error: no matching function for call to ‘std::queue<std::pair<int, int> >::push(<brace-enclosed initializer list>)’
42 | q.push({nx, ny});
| ~~~~~~^~~~~~~~~~
In file included from /usr/include/c++/13/queue:66,
from answer.code:2:
/usr/include/c++/13/bits/stl_queue.h:285:7: note: candidate: ‘void std::queue<_Tp, _Sequence>::push(const value_type&) [with _Tp = std::pair<int, int>; _Sequence = std::deque<std::pair<int, int>, std::allocator<std::pair<int, int> > >; value_type = std::pair<int, int>]’
285 | push(const value_type& __x)
| ^~~~
/usr/include/c++/13/bits/stl_queue.h:285:30: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const std::queue<std::pair<int, int> >::value_type&’ {aka ‘const std::pair<int, int>&’}
285 | push(const value_type& __x)
| ~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/13/bits/stl_queue.h:290:7: note: candidate: ‘void std::queue<_Tp, _Sequence>::push(value_type&&) [with _Tp = std::pair<int, int>; _Sequence = std::deque<std::pair<int, int>, std::allocator<std::pair<int, int> > >; value_type = std::pair<int, int>]’
290 | push(value_type&& __x)
| ^~~~
/usr/include/c++/13/bits/stl_queue.h:290:25: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘std::queue<std::pair<int, int> >::value_type&&’ {aka ‘std::pair<int, int>&&’}
290 | push(value_type&& __x)
| ~~~~~~~~~~~~~^~~
answer.code:50:76: error: ‘cleanpi’ was not declared in this scope; did you mean ‘clean’?
50 | clean[i][j] += clean[i - 1][j] + clean[i][j - 1] - cleanpi - 1][j - 1];
| ^~~~~~~
| clean