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_24727120_22680.cpp:14:14: error: no matching function for call to 'node::node()'
 }edge[20*maxn];
              ^
0_0_24727120_22680.cpp:14:14: note: candidates are:
0_0_24727120_22680.cpp:13:5: note: node::node(int, int, int)
     node(int a,int b,int c):to(a),next(b),w(c){}
     ^
0_0_24727120_22680.cpp:13:5: note:   candidate expects 3 arguments, 0 provided
0_0_24727120_22680.cpp:10:8: note: constexpr node::node(const node&)
 struct node
        ^
0_0_24727120_22680.cpp:10:8: note:   candidate expects 1 argument, 0 provided
0_0_24727120_22680.cpp:10:8: note: constexpr node::node(node&&)
0_0_24727120_22680.cpp:10:8: note:   candidate expects 1 argument, 0 provided
0_0_24727120_22680.cpp: In function 'int dfs(int, int)':
0_0_24727120_22680.cpp:45:21: error: 'd' was not declared in this scope
             int tmp=d[v][0]+edge[i].w;
                     ^
0_0_24727120_22680.cpp: In function 'int main()':
0_0_24727120_22680.cpp:82:24: error: 'd' was not declared in this scope
                 if(ans<d[i][0]+d[i][1]) ans=d[i][0]+d[i][1];
                        ^


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-09-29 12:25:22, Gzip enabled