0_0_14291591_4854.cpp: In function 'int findfa(int)':
0_0_14291591_4854.cpp:29:12: error: 'p' was not declared in this scope
return p[x]==-1?x:p[x]=findfa(p[x]);
^
0_0_14291591_4854.cpp: In function 'void Union(int, int)':
0_0_14291591_4854.cpp:36:9: error: 'p' was not declared in this scope
p[x]=y;
^
0_0_14291591_4854.cpp: In function 'void del(int)':
0_0_14291591_4854.cpp:40:5: error: 'vir' was not declared in this scope
vir[u]=cnt++;
^
0_0_14291591_4854.cpp:40:12: error: 'cnt' was not declared in this scope
vir[u]=cnt++;
^
0_0_14291591_4854.cpp: In function 'int main()':
0_0_14291591_4854.cpp:46:26: error: 'n' was not declared in this scope
while(scanf("%d %d",&n,&m) && (n||m))
^
0_0_14291591_4854.cpp:46:29: error: 'm' was not declared in this scope
while(scanf("%d %d",&n,&m) && (n||m))
^
0_0_14291591_4854.cpp:57:23: error: 'vir' was not declared in this scope
Union(vir[u],vir[v]);
^
0_0_14291591_4854.cpp:67:13: error: 'vis' was not declared in this scope
vis[findfa(vir[i])]=1;
^
0_0_14291591_4854.cpp:67:24: error: 'vir' was not declared in this scope
vis[findfa(vir[i])]=1;
^
0_0_14291591_4854.cpp:69:23: error: 'cnt' was not declared in this scope
for(int i=0;i<cnt;i++)
^
0_0_14291591_4854.cpp:70:16: error: 'vis' was not declared in this scope
if(vis[i])
^
|