0_0_37771560_1861.cpp: In function 'void dij(std::vector<Edge>*, ll*)':
0_0_37771560_1861.cpp:20:41: error: wrong number of template arguments (0, should be 1)
priority_queue<T, vector<T>, greater<>> Q;
^
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++/istream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
from 0_0_37771560_1861.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_37771560_1861.cpp:20:42: error: template argument 3 is invalid
priority_queue<T, vector<T>, greater<>> Q;
^
0_0_37771560_1861.cpp:20:46: error: invalid type in declaration before ';' token
priority_queue<T, vector<T>, greater<>> Q;
^
0_0_37771560_1861.cpp:21:7: error: request for member 'push' in 'Q', which is of non-class type 'int'
Q.push({0, 1});
^
0_0_37771560_1861.cpp:22:14: error: request for member 'empty' in 'Q', which is of non-class type 'int'
while(!Q.empty()) {
^
0_0_37771560_1861.cpp:23:14: error: expected unqualified-id before '[' token
auto [d, u] = Q.top(); Q.pop();
^
0_0_37771560_1861.cpp:23:34: error: request for member 'pop' in 'Q', which is of non-class type 'int'
auto [d, u] = Q.top(); Q.pop();
^
0_0_37771560_1861.cpp:24:17: error: 'u' was not declared in this scope
if (vis[u]) continue;
^
0_0_37771560_1861.cpp:25:13: error: 'u' was not declared in this scope
vis[u] = true;
^
0_0_37771560_1861.cpp:26:19: error: expected unqualified-id before '[' token
for (auto [v, e, q]: g[u]) {
^
0_0_37771560_1861.cpp:26:19: error: expected ';' before '[' token
0_0_37771560_1861.cpp:26:20: error: 'v' was not declared in this scope
for (auto [v, e, q]: g[u]) {
^
0_0_37771560_1861.cpp:26:23: error: 'e' was not declared in this scope
for (auto [v, e, q]: g[u]) {
^
0_0_37771560_1861.cpp:26:26: error: 'q' was not declared in this scope
for (auto [v, e, q]: g[u]) {
^
0_0_37771560_1861.cpp: In lambda function:
0_0_37771560_1861.cpp:26:28: error: expected '{' before ':' token
for (auto [v, e, q]: g[u]) {
^
0_0_37771560_1861.cpp: In function 'void dij(std::vector<Edge>*, ll*)':
0_0_37771560_1861.cpp:26:28: error: expected ';' before ':' token
0_0_37771560_1861.cpp:26:28: error: expected primary-expression before ':' token
0_0_37771560_1861.cpp:26:28: error: expected ')' before ':' token
0_0_37771560_1861.cpp:26:28: error: expected primary-expression before ':' token
0_0_37771560_1861.cpp: In function 'void solve()':
0_0_37771560_1861.cpp:49:19: error: expected unqualified-id before '[' token
for (auto [v, e, q]: g[u]) {
^
0_0_37771560_1861.cpp:49:19: error: expected ';' before '[' token
0_0_37771560_1861.cpp:49:20: error: 'v' was not declared in this scope
for (auto [v, e, q]: g[u]) {
^
0_0_37771560_1861.cpp:49:23: error: 'e' was not declared in this scope
for (auto [v, e, q]: g[u]) {
^
0_0_37771560_1861.cpp:49:26: error: 'q' was not declared in this scope
for (auto [v, e, q]: g[u]) {
^
0_0_37771560_1861.cpp: In lambda function:
0_0_37771560_1861.cpp:49:28: error: expected '{' before ':' token
for (auto [v, e, q]: g[u]) {
^
0_0_37771560_1861.cpp: In function 'void solve()':
0_0_37771560_1861.cpp:49:28: error: expected ';' before ':' token
0_0_37771560_1861.cpp:49:28: error: expected primary-expression before ':' token
0_0_37771560_1861.cpp:49:28: error: expected ')' before ':' token
0_0_37771560_1861.cpp:49:28: error: expected primary-expression before ':' token
|