0_0_17571269_112.cpp:7:10: error: array bound is not an integer constant before ']' token
int sum[N];
^
0_0_17571269_112.cpp:8:9: error: array bound is not an integer constant before ']' token
int fa[N];
^
0_0_17571269_112.cpp: In function 'void Union(int, int)':
0_0_17571269_112.cpp:12:5: error: 'fa' was not declared in this scope
fa[b]=a;
^
0_0_17571269_112.cpp:13:5: error: 'sum' was not declared in this scope
sum[a]+=sum[b]+1;
^
0_0_17571269_112.cpp: In function 'int main()':
0_0_17571269_112.cpp:26:13: error: 'fa' was not declared in this scope
fa[i]=i;
^
0_0_17571269_112.cpp:27:13: error: 'sum' was not declared in this scope
sum[i]=0;
^
0_0_17571269_112.cpp:36:16: error: 'sum' was not declared in this scope
if(sum[i]==k)
^
|