0_0_36229370_10573.cpp:14:1: error: 'vector' does not name a type
vector <node> vec[MAXN];
^
0_0_36229370_10573.cpp: In function 'void dfs(int, int, int)':
0_0_36229370_10573.cpp:22:7: error: 'vec' was not declared in this scope
num=vec[u].size();
^
0_0_36229370_10573.cpp: In function 'void init()':
0_0_36229370_10573.cpp:38:20: error: 'n' was not declared in this scope
for(j=0; (1<<j)<=n; j++)
^
0_0_36229370_10573.cpp:41:15: error: 'n' was not declared in this scope
for(i=1; i<=n; i++)p[i][0]=f[i];
^
0_0_36229370_10573.cpp:42:20: error: 'n' was not declared in this scope
for(j=1; (1<<j)<=n; j++)
^
0_0_36229370_10573.cpp: In function 'int main()':
0_0_36229370_10573.cpp:79:7: error: 'vec' was not declared in this scope
vec[i].clear();
^
0_0_36229370_10573.cpp:83:7: error: 'vec' was not declared in this scope
vec[a].push_back(node(b,c));
^
0_0_36229370_10573.cpp:83:32: error: no matching function for call to 'node::node(int&, int&)'
vec[a].push_back(node(b,c));
^
0_0_36229370_10573.cpp:83:32: note: candidates are:
0_0_36229370_10573.cpp:9:8: note: node::node()
struct node
^
0_0_36229370_10573.cpp:9:8: note: candidate expects 0 arguments, 2 provided
0_0_36229370_10573.cpp:9:8: note: constexpr node::node(const node&)
0_0_36229370_10573.cpp:9:8: note: candidate expects 1 argument, 2 provided
0_0_36229370_10573.cpp:9:8: note: constexpr node::node(node&&)
0_0_36229370_10573.cpp:9:8: note: candidate expects 1 argument, 2 provided
0_0_36229370_10573.cpp:84:32: error: no matching function for call to 'node::node(int&, int&)'
vec[b].push_back(node(a,c));
^
0_0_36229370_10573.cpp:84:32: note: candidates are:
0_0_36229370_10573.cpp:9:8: note: node::node()
struct node
^
0_0_36229370_10573.cpp:9:8: note: candidate expects 0 arguments, 2 provided
0_0_36229370_10573.cpp:9:8: note: constexpr node::node(const node&)
0_0_36229370_10573.cpp:9:8: note: candidate expects 1 argument, 2 provided
0_0_36229370_10573.cpp:9:8: note: constexpr node::node(node&&)
0_0_36229370_10573.cpp:9:8: note: candidate expects 1 argument, 2 provided
|