0_0_37688892_15617.cpp:11:7: error: 'N' was not declared in this scope
int p[N];
^
0_0_37688892_15617.cpp: In function 'int find(int)':
0_0_37688892_15617.cpp:13:5: error: 'p' was not declared in this scope
if( p[x] != x ) p[x] = find(p[x]);
^
0_0_37688892_15617.cpp:14:8: error: 'p' was not declared in this scope
return p[x];
^
0_0_37688892_15617.cpp: In function 'int main()':
0_0_37688892_15617.cpp:26:1: error: 'p' was not declared in this scope
p[i] = i;
^
0_0_37688892_15617.cpp:27:1: error: 'p' was not declared in this scope
p[a] = b;
^
|