0_0_16650731_12210.cpp:9:8: error: 'N' was not declared in this scope
int in[N],out[N],father[N],visited[N];
^
0_0_16650731_12210.cpp:9:15: error: 'N' was not declared in this scope
int in[N],out[N],father[N],visited[N];
^
0_0_16650731_12210.cpp:9:25: error: 'N' was not declared in this scope
int in[N],out[N],father[N],visited[N];
^
0_0_16650731_12210.cpp:9:36: error: 'N' was not declared in this scope
int in[N],out[N],father[N],visited[N];
^
0_0_16650731_12210.cpp: In function 'int find(int)':
0_0_16650731_12210.cpp:13:11: error: 'father' was not declared in this scope
if(x==father[x]) return x;
^
0_0_16650731_12210.cpp:14:17: error: 'father' was not declared in this scope
return find(father[x]);
^
0_0_16650731_12210.cpp: In function 'int main()':
0_0_16650731_12210.cpp:25:16: error: 'in' was not declared in this scope
memset(in,0,sizeof(in));
^
0_0_16650731_12210.cpp:26:16: error: 'out' was not declared in this scope
memset(out,0,sizeof(out));
^
0_0_16650731_12210.cpp:27:16: error: 'visited' was not declared in this scope
memset(visited,false,sizeof(visited));
^
0_0_16650731_12210.cpp:28:19: error: 'N' was not declared in this scope
for(i=0;i<N;i++) father[i]=i;
^
0_0_16650731_12210.cpp:28:26: error: 'father' was not declared in this scope
for(i=0;i<N;i++) father[i]=i;
^
0_0_16650731_12210.cpp:37:13: error: 'father' was not declared in this scope
father[x]=father[y]=find(x);
^
0_0_16650731_12210.cpp:41:19: error: 'N' was not declared in this scope
for(i=0;i<N;i++)
^
0_0_16650731_12210.cpp:43:31: error: 'father' was not declared in this scope
if(visited[i]&&i==father[i])
^
0_0_16650731_12210.cpp:55:19: error: 'N' was not declared in this scope
for(i=0;i<N;i++)
^
|