0_0_37831716_401.cpp: In function 'void solve()':
0_0_37831716_401.cpp:60:14: error: expected unqualified-id before '[' token
auto [nowv, nowd] = pq.top(); pq.pop();
^
0_0_37831716_401.cpp:61:16: error: 'nowv' was not declared in this scope
if (st[nowv]) continue;
^
0_0_37831716_401.cpp:62:12: error: 'nowv' was not declared in this scope
st[nowv] = true;
^
0_0_37831716_401.cpp:70:47: error: no matching function for call to 'std::priority_queue<Node>::push(<brace-enclosed initializer list>)'
pq.push({nxtv, dist[nxtv]});
^
0_0_37831716_401.cpp:70:47: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:64:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:85,
from 0_0_37831716_401.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:499:7: note: void std::priority_queue<_Tp, _Sequence, _Compare>::push(const value_type&) [with _Tp = Node; _Sequence = std::vector<Node, std::allocator<Node> >; _Compare = std::less<Node>; std::priority_queue<_Tp, _Sequence, _Compare>::value_type = Node]
push(const value_type& __x)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:499: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_queue.h:507:7: note: void std::priority_queue<_Tp, _Sequence, _Compare>::push(std::priority_queue<_Tp, _Sequence, _Compare>::value_type&&) [with _Tp = Node; _Sequence = std::vector<Node, std::allocator<Node> >; _Compare = std::less<Node>; std::priority_queue<_Tp, _Sequence, _Compare>::value_type = Node]
push(value_type&& __x)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:507:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::priority_queue<Node>::value_type&& {aka Node&&}'
0_0_37831716_401.cpp:75:19: error: expected unqualified-id before '[' token
for (auto [nxtv, w] : G[nowv])
^
0_0_37831716_401.cpp:75:19: error: expected ';' before '[' token
0_0_37831716_401.cpp:75:20: error: 'nxtv' was not declared in this scope
for (auto [nxtv, w] : G[nowv])
^
0_0_37831716_401.cpp:75:26: error: 'w' was not declared in this scope
for (auto [nxtv, w] : G[nowv])
^
0_0_37831716_401.cpp: In lambda function:
0_0_37831716_401.cpp:75:29: error: expected '{' before ':' token
for (auto [nxtv, w] : G[nowv])
^
0_0_37831716_401.cpp: In function 'void solve()':
0_0_37831716_401.cpp:75:29: error: expected ';' before ':' token
0_0_37831716_401.cpp:75:29: error: expected primary-expression before ':' token
0_0_37831716_401.cpp:75:29: error: expected ')' before ':' token
0_0_37831716_401.cpp:75:29: error: expected primary-expression before ':' token
|