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_25970393_13095.cpp:10:26: error: 'node' has not been declared
  friend bool operator < (node a,node b)
                          ^
0_0_25970393_13095.cpp:10:33: error: 'node' has not been declared
  friend bool operator < (node a,node b)
                                 ^
0_0_25970393_13095.cpp:10:39: error: 'bool operator<(int, int)' must have an argument of class or enumerated type
  friend bool operator < (node a,node b)
                                       ^
0_0_25970393_13095.cpp: In function 'bool unions(int, int)':
0_0_25970393_13095.cpp:30:9: error: 'f' was not declared in this scope
         f[x] = y;
         ^
0_0_25970393_13095.cpp: In function 'int kruskal(int, int)':
0_0_25970393_13095.cpp:37:14: error: expected primary-expression before ',' token
     sort(edge,edge+m);
              ^
0_0_25970393_13095.cpp:37:19: error: expected primary-expression before '+' token
     sort(edge,edge+m);
                   ^
0_0_25970393_13095.cpp:37:21: error: 'sort' was not declared in this scope
     sort(edge,edge+m);
                     ^
0_0_25970393_13095.cpp:44:24: error: expected primary-expression before '[' token
         if(!unions(edge[i].u,edge[i].v))
                        ^
0_0_25970393_13095.cpp:44:34: error: expected primary-expression before '[' token
         if(!unions(edge[i].u,edge[i].v))
                                  ^
0_0_25970393_13095.cpp:47:22: error: expected primary-expression before '[' token
             res+=edge[i].r;
                      ^


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-11-29 08:01:43, Gzip enabled