0_0_37505720_18494.cpp:39:52: error: 'Dijkstra' function uses 'auto' type specifier without trailing return type
template<typename T>auto Dijkstra(Graph<T>& g,int s){
^
0_0_37505720_18494.cpp:39:52: note: deduced return type only available with -std=c++1y or -std=gnu++1y
0_0_37505720_18494.cpp: In function 'auto Dijkstra(Graph<T>&, int)':
0_0_37505720_18494.cpp:50:18: error: expected unqualified-id before '[' token
auto [v,w]=g.e[i];
^
0_0_37505720_18494.cpp:51:20: error: 'v' was not declared in this scope
if(dis[v]<=dis[u]+w)continue;
^
0_0_37505720_18494.cpp:51:31: error: 'w' was not declared in this scope
if(dis[v]<=dis[u]+w)continue;
^
0_0_37505720_18494.cpp:52:17: error: 'v' was not declared in this scope
dis[v]=dis[u]+w;
^
0_0_37505720_18494.cpp:52:27: error: 'w' was not declared in this scope
dis[v]=dis[u]+w;
^
0_0_37505720_18494.cpp: In lambda function:
0_0_37505720_18494.cpp:70:14: error: expected unqualified-id before '[' token
auto [path,res]=Dijkstra(g,1);
^
0_0_37505720_18494.cpp:72:25: error: 'res' was not declared in this scope
ans=max(ans,res);
^
0_0_37505720_18494.cpp:76:20: error: 'path' was not declared in this scope
int i=(path[u]);
^
|