0_0_35213209_17296.cpp:5:12: error: 'N' was not declared in this scope
int degree[N];
^
0_0_35213209_17296.cpp:6:12: error: 'N' was not declared in this scope
int father[N];
^
0_0_35213209_17296.cpp:7:9: error: 'N' was not declared in this scope
int vis[N];
^
0_0_35213209_17296.cpp: In function 'int Find(int)':
0_0_35213209_17296.cpp:9:8: error: 'father' was not declared in this scope
if(father[x]==x)
^
0_0_35213209_17296.cpp:11:12: error: 'father' was not declared in this scope
return father[x]=Find(father[x]);
^
0_0_35213209_17296.cpp: In function 'void Union(int, int)':
0_0_35213209_17296.cpp:17:9: error: 'father' was not declared in this scope
father[x]=y;
^
0_0_35213209_17296.cpp: In function 'int main()':
0_0_35213209_17296.cpp:22:16: error: 'vis' was not declared in this scope
memset(vis,0,sizeof(vis));
^
0_0_35213209_17296.cpp:23:16: error: 'degree' was not declared in this scope
memset(degree,0,sizeof(degree));
^
0_0_35213209_17296.cpp:25:13: error: 'father' was not declared in this scope
father[i]=i;
^
|