0_0_36545680_13584.cpp: In function 'int shortest()':
0_0_36545680_13584.cpp:18:14: error: expected unqualified-id before '[' token
auto [x, y, state, d] = dq.front();
^
0_0_36545680_13584.cpp:20:13: error: 'x' was not declared in this scope
if (x == n && y == m) return d;
^
0_0_36545680_13584.cpp:20:23: error: 'y' was not declared in this scope
if (x == n && y == m) return d;
^
0_0_36545680_13584.cpp:20:38: error: 'd' was not declared in this scope
if (x == n && y == m) return d;
^
0_0_36545680_13584.cpp:21:16: error: 'x' was not declared in this scope
if (st[x][y][state]) continue;
^
0_0_36545680_13584.cpp:21:19: error: 'y' was not declared in this scope
if (st[x][y][state]) continue;
^
0_0_36545680_13584.cpp:21:22: error: 'state' was not declared in this scope
if (st[x][y][state]) continue;
^
0_0_36545680_13584.cpp:22:12: error: 'x' was not declared in this scope
st[x][y][state] = true;
^
0_0_36545680_13584.cpp:22:15: error: 'y' was not declared in this scope
st[x][y][state] = true;
^
0_0_36545680_13584.cpp:22:18: error: 'state' was not declared in this scope
st[x][y][state] = true;
^
0_0_36545680_13584.cpp:25:54: error: 'd' was not declared in this scope
dq.push_front({x, y, state | keys[x][y], d});
^
0_0_36545680_13584.cpp:25:56: error: no matching function for call to 'std::deque<Node>::push_front(<brace-enclosed initializer list>)'
dq.push_front({x, y, state | keys[x][y], d});
^
0_0_36545680_13584.cpp:25:56: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/deque:64:0,
from 0_0_36545680_13584.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_deque.h:1367:7: note: void std::deque<_Tp, _Alloc>::push_front(const value_type&) [with _Tp = Node; _Alloc = std::allocator<Node>; std::deque<_Tp, _Alloc>::value_type = Node]
push_front(const value_type& __x)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_deque.h:1367:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const value_type& {aka const Node&}'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_deque.h:1380:7: note: void std::deque<_Tp, _Alloc>::push_front(std::deque<_Tp, _Alloc>::value_type&&) [with _Tp = Node; _Alloc = std::allocator<Node>; std::deque<_Tp, _Alloc>::value_type = Node]
push_front(value_type&& __x)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_deque.h:1380:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::deque<Node>::value_type&& {aka Node&&}'
0_0_36545680_13584.cpp:30:43: error: 'ny' was not declared in this scope
if (nx >= 1 && nx <= n && ny >= 1 && ny <= m)
^
0_0_36545680_13584.cpp:31:50: error: 'd' was not declared in this scope
dq.push_back({nx, ny, state, d + 1});
^
0_0_36545680_13584.cpp:31:56: error: no matching function for call to 'std::deque<Node>::push_back(<brace-enclosed initializer list>)'
dq.push_back({nx, ny, state, d + 1});
^
0_0_36545680_13584.cpp:31:56: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/deque:64:0,
from 0_0_36545680_13584.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_deque.h:1398:7: note: void std::deque<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = Node; _Alloc = std::allocator<Node>; std::deque<_Tp, _Alloc>::value_type = Node]
push_back(const value_type& __x)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_deque.h:1398:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const value_type& {aka const Node&}'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_deque.h:1412:7: note: void std::deque<_Tp, _Alloc>::push_back(std::deque<_Tp, _Alloc>::value_type&&) [with _Tp = Node; _Alloc = std::allocator<Node>; std::deque<_Tp, _Alloc>::value_type = Node]
push_back(value_type&& __x)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_deque.h:1412:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::deque<Node>::value_type&& {aka Node&&}'
|