0_0_24727120_22680.cpp:14:14: error: no matching function for call to 'node::node()'
}edge[20*maxn];
^
0_0_24727120_22680.cpp:14:14: note: candidates are:
0_0_24727120_22680.cpp:13:5: note: node::node(int, int, int)
node(int a,int b,int c):to(a),next(b),w(c){}
^
0_0_24727120_22680.cpp:13:5: note: candidate expects 3 arguments, 0 provided
0_0_24727120_22680.cpp:10:8: note: constexpr node::node(const node&)
struct node
^
0_0_24727120_22680.cpp:10:8: note: candidate expects 1 argument, 0 provided
0_0_24727120_22680.cpp:10:8: note: constexpr node::node(node&&)
0_0_24727120_22680.cpp:10:8: note: candidate expects 1 argument, 0 provided
0_0_24727120_22680.cpp: In function 'int dfs(int, int)':
0_0_24727120_22680.cpp:45:21: error: 'd' was not declared in this scope
int tmp=d[v][0]+edge[i].w;
^
0_0_24727120_22680.cpp: In function 'int main()':
0_0_24727120_22680.cpp:82:24: error: 'd' was not declared in this scope
if(ans<d[i][0]+d[i][1]) ans=d[i][0]+d[i][1];
^
|