0_0_38507116_1581.cpp: In lambda function:
0_0_38507116_1581.cpp:90:18: error: expected unqualified-id before '[' token
auto [a, b] = q.front();
^
0_0_38507116_1581.cpp:93:26: error: 'a' was not declared in this scope
int nx = a + dx[i], ny = b + dy[i];
^
0_0_38507116_1581.cpp:94:41: error: 'ny' was not declared in this scope
if(nx < 0 || nx >= n || ny < 0 || ny >= m) continue;
^
0_0_38507116_1581.cpp:96:30: error: 'b' was not declared in this scope
if(!check(a, b, nx, ny, x)) continue;
^
0_0_38507116_1581.cpp:96:37: error: 'ny' was not declared in this scope
if(!check(a, b, nx, ny, x)) continue;
^
0_0_38507116_1581.cpp:98:27: error: 'ny' was not declared in this scope
if(st[nx][ny]) continue;
^
0_0_38507116_1581.cpp:99:24: error: 'ny' was not declared in this scope
st[nx][ny] = 1;
^
0_0_38507116_1581.cpp:100:32: error: no matching function for call to 'std::queue<std::pair<long long int, long long int> >::push(<brace-enclosed initializer list>)'
q.push({nx, ny});
^
0_0_38507116_1581.cpp:100:32: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:64:0,
from 0_0_38507116_1581.cpp:8:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:215:7: note: void std::queue<_Tp, _Sequence>::push(const value_type&) [with _Tp = std::pair<long long int, long long int>; _Sequence = std::deque<std::pair<long long int, long long int>, std::allocator<std::pair<long long int, long long int> > >; std::queue<_Tp, _Sequence>::value_type = std::pair<long long int, long long int>]
push(const value_type& __x)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:215:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const value_type& {aka const std::pair<long long int, long long int>&}'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:220:7: note: void std::queue<_Tp, _Sequence>::push(std::queue<_Tp, _Sequence>::value_type&&) [with _Tp = std::pair<long long int, long long int>; _Sequence = std::deque<std::pair<long long int, long long int>, std::allocator<std::pair<long long int, long long int> > >; std::queue<_Tp, _Sequence>::value_type = std::pair<long long int, long long int>]
push(value_type&& __x)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:220:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::queue<std::pair<long long int, long long int> >::value_type&& {aka std::pair<long long int, long long int>&&}'
|