0_0_38489547_19285.cpp: In function 'void dij()':
0_0_38489547_19285.cpp:24:14: error: expected unqualified-id before '[' token
auto [d, u] = q.top();
^
0_0_38489547_19285.cpp:27:16: error: 'u' was not declared in this scope
if(vis[u]) continue;
^
0_0_38489547_19285.cpp:28:13: error: 'u' was not declared in this scope
vis[u] = 1;
^
0_0_38489547_19285.cpp:33:34: error: 'd' was not declared in this scope
lim[v] = max(lim[v], d);
^
0_0_38489547_19285.cpp:40:35: error: no matching function for call to 'std::priority_queue<std::pair<long long int, long long int>, std::vector<std::pair<long long int, long long int> >, std::greater<std::pair<long long int, long long int> > >::push(<brace-enclosed initializer list>)'
q.push({dis[v], v});
^
0_0_38489547_19285.cpp:40:35: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:64:0,
from 0_0_38489547_19285.cpp:4:
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 = std::pair<long long int, long long int>; _Sequence = std::vector<std::pair<long long int, long long int> >; _Compare = std::greater<std::pair<long long int, long long int> >; std::priority_queue<_Tp, _Sequence, _Compare>::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:499: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:507:7: note: void std::priority_queue<_Tp, _Sequence, _Compare>::push(std::priority_queue<_Tp, _Sequence, _Compare>::value_type&&) [with _Tp = std::pair<long long int, long long int>; _Sequence = std::vector<std::pair<long long int, long long int> >; _Compare = std::greater<std::pair<long long int, long long int> >; std::priority_queue<_Tp, _Sequence, _Compare>::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:507:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::priority_queue<std::pair<long long int, long long int>, std::vector<std::pair<long long int, long long int> >, std::greater<std::pair<long long int, long long int> > >::value_type&& {aka std::pair<long long int, long long int>&&}'
0_0_38489547_19285.cpp:44:19: error: expected unqualified-id before '[' token
for (auto [v, w] : e[u]) {
^
0_0_38489547_19285.cpp:44:19: error: expected ';' before '[' token
0_0_38489547_19285.cpp:44:20: error: 'v' was not declared in this scope
for (auto [v, w] : e[u]) {
^
0_0_38489547_19285.cpp:44:23: error: 'w' was not declared in this scope
for (auto [v, w] : e[u]) {
^
0_0_38489547_19285.cpp: In lambda function:
0_0_38489547_19285.cpp:44:26: error: expected '{' before ':' token
for (auto [v, w] : e[u]) {
^
0_0_38489547_19285.cpp: In function 'void dij()':
0_0_38489547_19285.cpp:44:26: error: expected ';' before ':' token
0_0_38489547_19285.cpp:44:26: error: expected primary-expression before ':' token
0_0_38489547_19285.cpp:44:26: error: expected ')' before ':' token
0_0_38489547_19285.cpp:44:26: error: expected primary-expression before ':' token
|