0_0_16462615_10449.cpp:3:12: error: 'max' was not declared in this scope
int father[max]; //father[x] 表示x的父结点
^
0_0_16462615_10449.cpp:4:10: error: 'max' was not declared in this scope
int rank[max]; //rank[x]表示x的秩
^
0_0_16462615_10449.cpp: In function 'void make_set(int)':
0_0_16462615_10449.cpp:9:5: error: 'father' was not declared in this scope
father[x] = x;
^
0_0_16462615_10449.cpp:10:5: error: 'rank' was not declared in this scope
rank[x] = 0;
^
0_0_16462615_10449.cpp: In function 'int find_set(int)':
0_0_16462615_10449.cpp:17:13: error: 'father' was not declared in this scope
if(x != father[x])
^
0_0_16462615_10449.cpp:21:12: error: 'father' was not declared in this scope
return father[x];
^
0_0_16462615_10449.cpp: At global scope:
0_0_16462615_10449.cpp:28:11: error: expected identifier before '(' token
void union(int x,int y)
^
0_0_16462615_10449.cpp:28:12: error: expected unqualified-id before 'int'
void union(int x,int y)
^
0_0_16462615_10449.cpp:28:12: error: expected ')' before 'int'
|