F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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);
               ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-06-18 03:27:45, Gzip enabled