0_0_28653934_8543.cpp:4:14: error: expected initializer before numeric constant
const int N 50005
^
0_0_28653934_8543.cpp: In function 'void init()':
0_0_28653934_8543.cpp:8:21: error: 'n' was not declared in this scope
for(int i=0; i<=n; ++i)
^
0_0_28653934_8543.cpp:9:9: error: 'f' was not declared in this scope
f[i]=i, rank[i]=0;
^
0_0_28653934_8543.cpp:9:17: error: 'rank' was not declared in this scope
f[i]=i, rank[i]=0;
^
0_0_28653934_8543.cpp: In function 'int find(int)':
0_0_28653934_8543.cpp:12:11: error: 'f' was not declared in this scope
if(x==f[x]) return f[x];
^
0_0_28653934_8543.cpp:13:11: error: 'f' was not declared in this scope
int t=f[x];
^
0_0_28653934_8543.cpp:15:5: error: 'rank' was not declared in this scope
rank[x] += rank[t];
^
0_0_28653934_8543.cpp: In function 'bool Union(int, int, int)':
0_0_28653934_8543.cpp:21:12: error: 'rank' was not declared in this scope
if(rank[x]+m!=rank[y])
^
0_0_28653934_8543.cpp:25:5: error: 'f' was not declared in this scope
f[b] = a;
^
0_0_28653934_8543.cpp:26:5: error: 'rank' was not declared in this scope
rank[b] = rank[x]+m-rank[y];
^
0_0_28653934_8543.cpp: In function 'int main()':
0_0_28653934_8543.cpp:32:26: error: 'n' was not declared in this scope
while(~scanf("%d%d",&n,&m)){
^
0_0_28653934_8543.cpp:32:29: error: 'm' was not declared in this scope
while(~scanf("%d%d",&n,&m)){
^
|