0_0_22189991_22679.cpp:9:9: error: 'Edge' was not declared in this scope
vector <Edge> vec[505];
^
0_0_22189991_22679.cpp:9:13: error: template argument 1 is invalid
vector <Edge> vec[505];
^
0_0_22189991_22679.cpp:9:13: error: template argument 2 is invalid
0_0_22189991_22679.cpp:9:23: error: invalid type in declaration before ';' token
vector <Edge> vec[505];
^
0_0_22189991_22679.cpp: In function 'int dfs(int)':
0_0_22189991_22679.cpp:14:26: error: request for member 'size' in 'vec[x]', which is of non-class type 'int'
for(int i=0;i<vec[x].size();i++)
^
0_0_22189991_22679.cpp:16:25: error: invalid types 'int[int]' for array subscript
now=dfs(vec[x][i]);
^
0_0_22189991_22679.cpp: In function 'int main()':
0_0_22189991_22679.cpp:43:20: error: request for member 'clear' in 'vec[i]', which is of non-class type 'int'
vec[i].clear();
^
0_0_22189991_22679.cpp:48:20: error: request for member 'push_back' in 'vec[x]', which is of non-class type 'int'
vec[x].push_back(i);
^
|