0_0_24029950_9581.cpp:4:1: error: expected ',' or ';' before 'int'
int value[N],fat[N],flag[N];
^
0_0_24029950_9581.cpp: In function 'int find_father(int)':
0_0_24029950_9581.cpp:6:9: error: 'fat' was not declared in this scope
if (fat[a]==a){
^
0_0_24029950_9581.cpp: In function 'void merg(int, int)':
0_0_24029950_9581.cpp:16:5: error: 'fat' was not declared in this scope
fat[fa]=fb;
^
0_0_24029950_9581.cpp:17:5: error: 'value' was not declared in this scope
value[fa]++;
^
0_0_24029950_9581.cpp: In function 'void init()':
0_0_24029950_9581.cpp:21:9: error: 'fat' was not declared in this scope
fat[i]=i;
^
0_0_24029950_9581.cpp:22:9: error: 'value' was not declared in this scope
value[i]=0;
^
0_0_24029950_9581.cpp:23:9: error: 'flag' was not declared in this scope
flag[i]=0;
^
0_0_24029950_9581.cpp: In function 'int main()':
0_0_24029950_9581.cpp:36:21: error: 'flag' was not declared in this scope
if (flag[i]==1){
^
0_0_24029950_9581.cpp:37:25: error: 'value' was not declared in this scope
if (value[i]==0){
^
0_0_24029950_9581.cpp:40:25: error: 'value' was not declared in this scope
if (value[i]>1){
^
0_0_24029950_9581.cpp:62:13: error: 'flag' was not declared in this scope
flag[f]=1;flag[s]=1;
^
|