0_0_14195914_7883.cpp:24:9: error: 'N' was not declared in this scope
int cnt[N];
^
0_0_14195914_7883.cpp:25:8: error: 'N' was not declared in this scope
int fa[N];
^
0_0_14195914_7883.cpp: In function 'int Find(int)':
0_0_14195914_7883.cpp:55:5: error: 'fa' was not declared in this scope
if(fa[n]==n)
^
0_0_14195914_7883.cpp:57:14: error: 'fa' was not declared in this scope
return Find(fa[n]);
^
0_0_14195914_7883.cpp: In function 'int Union(int, int)':
0_0_14195914_7883.cpp:64:3: error: 'cnt' was not declared in this scope
cnt[fu]+=cnt[fv];
^
0_0_14195914_7883.cpp:65:3: error: 'fa' was not declared in this scope
fa[fv]=fu;
^
0_0_14195914_7883.cpp: In function 'void Init(int)':
0_0_14195914_7883.cpp:74:3: error: 'cnt' was not declared in this scope
cnt[i]=1,fa[i]=i;
^
0_0_14195914_7883.cpp:74:12: error: 'fa' was not declared in this scope
cnt[i]=1,fa[i]=i;
^
0_0_14195914_7883.cpp: In function 'int main()':
0_0_14195914_7883.cpp:94:19: error: 'cnt' was not declared in this scope
printf("%d\n",cnt[sum]);
^
|