0_0_27640826_2602.cpp:5:15: error: 'node' was not declared in this scope
vector<vector<node>> g;
^
0_0_27640826_2602.cpp:5:15: error: template argument 1 is invalid
0_0_27640826_2602.cpp:5:15: error: template argument 2 is invalid
0_0_27640826_2602.cpp:5:19: error: template argument 1 is invalid
vector<vector<node>> g;
^
0_0_27640826_2602.cpp:5:19: error: template argument 2 is invalid
0_0_27640826_2602.cpp:5:23: error: invalid type in declaration before ';' token
vector<vector<node>> g;
^
0_0_27640826_2602.cpp: In function 'void init(int)':
0_0_27640826_2602.cpp:15:4: error: cannot convert 'std::vector<std::vector<node> >' to 'int' in assignment
g=vector<vector<node> >(n);
^
0_0_27640826_2602.cpp:16:5: error: request for member 'clear' in 'g', which is of non-class type 'int'
g.clear();
^
0_0_27640826_2602.cpp: In function 'int main()':
0_0_27640826_2602.cpp:33:7: error: invalid types 'int[int]' for array subscript
g[u].push_back(node(v,w));
^
0_0_27640826_2602.cpp:34:7: error: invalid types 'int[int]' for array subscript
g[v].push_back(node(u,w));
^
0_0_27640826_2602.cpp:46:22: error: invalid types 'int[int]' for array subscript
for(int i=0;i<g[num].size();i++){
^
0_0_27640826_2602.cpp:47:15: error: invalid types 'int[int]' for array subscript
int v=g[num][i].v;
^
0_0_27640826_2602.cpp:48:15: error: invalid types 'int[int]' for array subscript
int x=g[num][i].x;
^
|