0_0_22231352_785.cpp:27:2: error: 'x' does not name a type
x:-x)<1e-15)
^
0_0_22231352_785.cpp:47:1: error: 'vector' does not name a type
vector<int>G[maxn];
^
0_0_22231352_785.cpp:56:1: error: 'vector' does not name a type
vector<Edge>edges;
^
0_0_22231352_785.cpp: In function 'void add_edge(int, int, int)':
0_0_22231352_785.cpp:60:5: error: 'edges' was not declared in this scope
edges.push_back(Edge(s,t,w));
^
0_0_22231352_785.cpp:63:5: error: 'G' was not declared in this scope
G[s].push_back(m-2);
^
0_0_22231352_785.cpp: In function 'void init()':
0_0_22231352_785.cpp:69:5: error: 'edges' was not declared in this scope
edges.clear();
^
0_0_22231352_785.cpp:70:28: error: 'G' was not declared in this scope
for(int i=1;i<=n;i++) G[i].clear();
^
0_0_22231352_785.cpp: In function 'void dfs(int, int)':
0_0_22231352_785.cpp:77:19: error: 'G' was not declared in this scope
for(int i=0;i<G[x].size();i++)
^
0_0_22231352_785.cpp:79:17: error: 'edges' was not declared in this scope
Edge &e=edges[G[x][i]];
^
0_0_22231352_785.cpp:87:51: error: 'min' was not declared in this scope
dp[x][v]=min(tmp+dp[y][0]+2*w,dp[x][v]);
^
0_0_22231352_785.cpp:87:51: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
from 0_0_22231352_785.cpp:6:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:3444:5: note: 'std::min'
min(initializer_list<_Tp> __l, _Compare __comp)
^
0_0_22231352_785.cpp: In function 'int main()':
0_0_22231352_785.cpp:108:55: error: 'min' was not declared in this scope
for(int i=0;i<=V;i++) ans=min(ans,dp[root][i]);
^
0_0_22231352_785.cpp:108:55: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
from 0_0_22231352_785.cpp:6:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:3444:5: note: 'std::min'
min(initializer_list<_Tp> __l, _Compare __comp)
^
|