0_0_35724938_11108.cpp:22:23: error: 'node' has not been declared
void link(int a,int b,node *g)
^
0_0_35724938_11108.cpp: In function 'void link(int, int, int*)':
0_0_35724938_11108.cpp:28:9: error: request for member 'ring' in '*(g + ((sizetype)(((long long unsigned int)fx) * 4ull)))', which is of non-class type 'int'
g[fx].ring = true;
^
0_0_35724938_11108.cpp:32:12: error: request for member 'num' in '*(g + ((sizetype)(((long long unsigned int)fx) * 4ull)))', which is of non-class type 'int'
if(g[fx].num > g[fy].num )//为了使每个连通分量的根节点一致
^
0_0_35724938_11108.cpp:32:24: error: request for member 'num' in '*(g + ((sizetype)(((long long unsigned int)fy) * 4ull)))', which is of non-class type 'int'
if(g[fx].num > g[fy].num )//为了使每个连通分量的根节点一致
^
0_0_35724938_11108.cpp:34:4: error: 'f' was not declared in this scope
f[fy]=fx;
^
0_0_35724938_11108.cpp:35:10: error: request for member 'num' in '*(g + ((sizetype)(((long long unsigned int)fx) * 4ull)))', which is of non-class type 'int'
g[fx].num +=g[fy].num;
^
0_0_35724938_11108.cpp:35:22: error: request for member 'num' in '*(g + ((sizetype)(((long long unsigned int)fy) * 4ull)))', which is of non-class type 'int'
g[fx].num +=g[fy].num;
^
0_0_35724938_11108.cpp:39:4: error: 'f' was not declared in this scope
f[fx]=fy;
^
0_0_35724938_11108.cpp:40:10: error: request for member 'num' in '*(g + ((sizetype)(((long long unsigned int)fy) * 4ull)))', which is of non-class type 'int'
g[fy].num +=g[fx].num;
^
0_0_35724938_11108.cpp:40:22: error: request for member 'num' in '*(g + ((sizetype)(((long long unsigned int)fx) * 4ull)))', which is of non-class type 'int'
g[fy].num +=g[fx].num;
^
0_0_35724938_11108.cpp: In function 'int main()':
0_0_35724938_11108.cpp:69:15: error: cannot convert 'yhh*' to 'int*' for argument '3' to 'void link(int, int, int*)'
link(a,b,g1);
^
0_0_35724938_11108.cpp:75:15: error: cannot convert 'yhh*' to 'int*' for argument '3' to 'void link(int, int, int*)'
link(a,b,g2);
^
|