0_0_37743346_21922.cpp: In function 'void dijkstra()':
0_0_37743346_21922.cpp:28:64: error: wrong number of template arguments (0, should be 1)
priority_queue<pair<int, pii>, vector<pair<int, pii>>, greater<>> pq;
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:48:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/locale_classes.h:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:41,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:42,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
from 0_0_37743346_21922.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_function.h:358:12: error: provided for 'template<class _Tp> struct std::greater'
struct greater : public binary_function<_Tp, _Tp, bool>
^
0_0_37743346_21922.cpp:28:65: error: template argument 3 is invalid
priority_queue<pair<int, pii>, vector<pair<int, pii>>, greater<>> pq;
^
0_0_37743346_21922.cpp:28:70: error: invalid type in declaration before ';' token
priority_queue<pair<int, pii>, vector<pair<int, pii>>, greater<>> pq;
^
0_0_37743346_21922.cpp:29:5: error: request for member 'push' in 'pq', which is of non-class type 'int'
pq.push({0, {st, 0}});
^
0_0_37743346_21922.cpp:31:13: error: request for member 'empty' in 'pq', which is of non-class type 'int'
while (!pq.empty()) {
^
0_0_37743346_21922.cpp:32:14: error: request for member 'top' in 'pq', which is of non-class type 'int'
int u = pq.top().se.fi, l = pq.top().fi, x = pq.top().se.se;
^
0_0_37743346_21922.cpp:33:6: error: request for member 'pop' in 'pq', which is of non-class type 'int'
pq.pop();
^
0_0_37743346_21922.cpp:34:14: error: 'x' was not declared in this scope
if (vis[u][x]) continue;
^
0_0_37743346_21922.cpp:35:10: error: 'x' was not declared in this scope
vis[u][x] = true;
^
0_0_37743346_21922.cpp:36:13: error: expected unqualified-id before '[' token
for (auto [w, v] : G[u]) {
^
0_0_37743346_21922.cpp:36:13: error: expected ';' before '[' token
0_0_37743346_21922.cpp:36:14: error: 'w' was not declared in this scope
for (auto [w, v] : G[u]) {
^
0_0_37743346_21922.cpp:36:17: error: 'v' was not declared in this scope
for (auto [w, v] : G[u]) {
^
0_0_37743346_21922.cpp: In lambda function:
0_0_37743346_21922.cpp:36:20: error: expected '{' before ':' token
for (auto [w, v] : G[u]) {
^
0_0_37743346_21922.cpp: In function 'void dijkstra()':
0_0_37743346_21922.cpp:36:20: error: expected ';' before ':' token
0_0_37743346_21922.cpp:36:20: error: expected primary-expression before ':' token
0_0_37743346_21922.cpp:36:20: error: expected ')' before ':' token
0_0_37743346_21922.cpp:36:20: error: expected primary-expression before ':' token
|