0_0_17571257_26321.cpp:6:9: error: 'N' was not declared in this scope
int sum[N];
^
0_0_17571257_26321.cpp:7:8: error: 'N' was not declared in this scope
int fa[N];
^
0_0_17571257_26321.cpp: In function 'void Union(int, int)':
0_0_17571257_26321.cpp:11:5: error: 'fa' was not declared in this scope
fa[b]=a;
^
0_0_17571257_26321.cpp:12:5: error: 'sum' was not declared in this scope
sum[a]+=sum[b]+1;
^
0_0_17571257_26321.cpp: In function 'int main()':
0_0_17571257_26321.cpp:25:13: error: 'fa' was not declared in this scope
fa[i]=i;
^
0_0_17571257_26321.cpp:26:13: error: 'sum' was not declared in this scope
sum[i]=0;
^
0_0_17571257_26321.cpp:35:16: error: 'sum' was not declared in this scope
if(sum[i]==k)
^
|