0_0_25836218_1088.cpp:7:27: error: expected initializer before 'size'
int id[100005],fa[1000005]size[1000005];
^
0_0_25836218_1088.cpp: In function 'int find(int)':
0_0_25836218_1088.cpp:9:9: error: 'fa' was not declared in this scope
return fa[x]==x?x:fa[x]=find(fa[x]);
^
0_0_25836218_1088.cpp: In function 'int main()':
0_0_25836218_1088.cpp:17:15: error: 'size' was not declared in this scope
rep(q,0,n-1)size[q]=1,fa[q]=q,id[q]=q;
^
0_0_25836218_1088.cpp:17:25: error: 'fa' was not declared in this scope
rep(q,0,n-1)size[q]=1,fa[q]=q,id[q]=q;
^
0_0_25836218_1088.cpp:24:5: error: 'size' was not declared in this scope
size[x]+=size[y];
^
0_0_25836218_1088.cpp:26:5: error: 'fa' was not declared in this scope
fa[y]=x;
^
0_0_25836218_1088.cpp:29:7: error: 'size' was not declared in this scope
--size[find(a)];
^
0_0_25836218_1088.cpp:32:5: error: 'fa' was not declared in this scope
fa[id[a]]=id[a];
^
0_0_25836218_1088.cpp:36:20: error: 'size' was not declared in this scope
rep(q,0,n-1)ans+=size[q]!=0;
^
|