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_17765558_7705.cpp:34:1: error: 'Node' does not name a type
 Node edge[M];
 ^
0_0_17765558_7705.cpp:42:15: error: expected ')' before 'a'
 bool cmp(Node a,Node b)
               ^
0_0_17765558_7705.cpp:42:22: error: expected ')' before 'b'
 bool cmp(Node a,Node b)
                      ^
0_0_17765558_7705.cpp:42:23: error: expression list treated as compound expression in initializer [-fpermissive]
 bool cmp(Node a,Node b)
                       ^
0_0_17765558_7705.cpp:42:23: error: cannot convert 'Node' to 'bool' in initialization
0_0_17765558_7705.cpp:43:1: error: expected ',' or ';' before '{' token
 {
 ^
0_0_17765558_7705.cpp: In function 'LL kruskal()':
0_0_17765558_7705.cpp:57:15: error: 'edge' was not declared in this scope
   int px=find(edge[i].x);
               ^
0_0_17765558_7705.cpp: In function 'int main()':
0_0_17765558_7705.cpp:115:4: error: 'edge' was not declared in this scope
    edge[i]=Node(x,y,v);
    ^
0_0_17765558_7705.cpp:115:22: error: no match for call to '(Node) (int&, int&, int&)'
    edge[i]=Node(x,y,v);
                      ^
0_0_17765558_7705.cpp:117:8: error: 'edge' was not declared in this scope
   sort(edge,edge+m,cmp);
        ^


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-17 02:54:10, Gzip enabled