0_0_37801624_31252.cpp: In function 'void Dijkstra(int)':
0_0_37801624_31252.cpp:36:73: error: wrong number of template arguments (0, should be 1)
priority_queue < array < ll, 2 >, vector < array < ll, 2 >>, 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_37801624_31252.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_37801624_31252.cpp:36:74: error: template argument 3 is invalid
priority_queue < array < ll, 2 >, vector < array < ll, 2 >>, greater<>>q;
^
0_0_37801624_31252.cpp:36:77: error: invalid type in declaration before ';' token
priority_queue < array < ll, 2 >, vector < array < ll, 2 >>, greater<>>q;
^
0_0_37801624_31252.cpp:38:7: error: request for member 'push' in 'q', which is of non-class type 'int'
q.push({0, start});
^
0_0_37801624_31252.cpp:39:15: error: request for member 'empty' in 'q', which is of non-class type 'int'
while (!q.empty()) {
^
0_0_37801624_31252.cpp:40:13: error: expected unqualified-id before '[' token
auto[z, u]=q.top();
^
0_0_37801624_31252.cpp:41:11: error: request for member 'pop' in 'q', which is of non-class type 'int'
q.pop();
^
0_0_37801624_31252.cpp:42:17: error: 'u' was not declared in this scope
if (vis[u])continue;
^
0_0_37801624_31252.cpp:43:13: error: 'u' was not declared in this scope
vis[u] = true;
^
0_0_37801624_31252.cpp:44:18: error: expected unqualified-id before '[' token
for (auto[v, w]:a[u]) {
^
0_0_37801624_31252.cpp:44:18: error: expected ';' before '[' token
0_0_37801624_31252.cpp:44:19: error: 'v' was not declared in this scope
for (auto[v, w]:a[u]) {
^
0_0_37801624_31252.cpp:44:22: error: 'w' was not declared in this scope
for (auto[v, w]:a[u]) {
^
0_0_37801624_31252.cpp: In lambda function:
0_0_37801624_31252.cpp:44:24: error: expected '{' before ':' token
for (auto[v, w]:a[u]) {
^
0_0_37801624_31252.cpp: In function 'void Dijkstra(int)':
0_0_37801624_31252.cpp:44:24: error: expected ';' before ':' token
0_0_37801624_31252.cpp:44:24: error: expected primary-expression before ':' token
0_0_37801624_31252.cpp:44:24: error: expected ')' before ':' token
0_0_37801624_31252.cpp:44:24: error: expected primary-expression before ':' token
0_0_37801624_31252.cpp: In function 'void dfs(int, int)':
0_0_37801624_31252.cpp:56:11: error: expected unqualified-id before '[' token
for(auto [v,w]:a[u]) if(v!=fu){
^
0_0_37801624_31252.cpp:56:11: error: expected ';' before '[' token
0_0_37801624_31252.cpp:56:12: error: 'v' was not declared in this scope
for(auto [v,w]:a[u]) if(v!=fu){
^
0_0_37801624_31252.cpp:56:14: error: 'w' was not declared in this scope
for(auto [v,w]:a[u]) if(v!=fu){
^
0_0_37801624_31252.cpp: In lambda function:
0_0_37801624_31252.cpp:56:16: error: expected '{' before ':' token
for(auto [v,w]:a[u]) if(v!=fu){
^
0_0_37801624_31252.cpp: In function 'void dfs(int, int)':
0_0_37801624_31252.cpp:56:16: error: expected ';' before ':' token
0_0_37801624_31252.cpp:56:16: error: expected primary-expression before ':' token
0_0_37801624_31252.cpp:56:16: error: expected ')' before ':' token
0_0_37801624_31252.cpp:56:16: error: expected primary-expression before ':' token
|