0_0_30190228_14174.cpp: In function 'void solve(int)':
0_0_30190228_14174.cpp:3:10: error: 'init' was not declared in this scope
init();
^
0_0_30190228_14174.cpp:4:19: error: 'n' was not declared in this scope
for(int i=0;i<n+1;i++)
^
0_0_30190228_14174.cpp:8:19: error: 'u' was not declared in this scope
merge(u[i],v[i]);
^
0_0_30190228_14174.cpp:8:24: error: 'v' was not declared in this scope
merge(u[i],v[i]);
^
0_0_30190228_14174.cpp:8:28: error: 'merge' was not declared in this scope
merge(u[i],v[i]);
^
0_0_30190228_14174.cpp:12:20: error: 'n' was not declared in this scope
for(int i=1;i<=n;i++)//判断只有一个祖先
^
0_0_30190228_14174.cpp:14:12: error: 'f' was not declared in this scope
if(f[i]==i)
^
0_0_30190228_14174.cpp:18:5: error: 'output' was not declared in this scope
output++;
^
0_0_30190228_14174.cpp: In function 'void solve2(int, int)':
0_0_30190228_14174.cpp:22:10: error: 'init' was not declared in this scope
init();
^
0_0_30190228_14174.cpp:23:19: error: 'n' was not declared in this scope
for(int i=0;i<n+1;i++)
^
0_0_30190228_14174.cpp:27:19: error: 'u' was not declared in this scope
merge(u[i],v[i]);
^
0_0_30190228_14174.cpp:27:24: error: 'v' was not declared in this scope
merge(u[i],v[i]);
^
0_0_30190228_14174.cpp:27:28: error: 'merge' was not declared in this scope
merge(u[i],v[i]);
^
0_0_30190228_14174.cpp:31:20: error: 'n' was not declared in this scope
for(int i=1;i<=n;i++)//判断只有一个祖先
^
0_0_30190228_14174.cpp:33:12: error: 'f' was not declared in this scope
if(f[i]==i)
^
0_0_30190228_14174.cpp:37:5: error: 'output' was not declared in this scope
output++;
^
|