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_21857280_2417.cpp:16:5: error: default argument missing for parameter 3 of 'Edge::Edge(int, int, LL)'
     Edge(int to = 0, int next = 0, LL len): to(to), next(next), len(len) {}
     ^
0_0_21857280_2417.cpp:17:13: error: call of overloaded 'Edge()' is ambiguous
 } E[maxn * 4];
             ^
0_0_21857280_2417.cpp:17:13: note: candidates are:
0_0_21857280_2417.cpp:16:5: note: Edge::Edge(int, int, LL)
     Edge(int to = 0, int next = 0, LL len): to(to), next(next), len(len) {}
     ^
0_0_21857280_2417.cpp:15:5: note: Edge::Edge()
     Edge() {}
     ^
0_0_21857280_2417.cpp: In function 'void Spfa()':
0_0_21857280_2417.cpp:41:26: error: 'u' was not declared in this scope
         for(int k = head[u]; ~k ; k = E[k].next)
                          ^
0_0_21857280_2417.cpp: In function 'int main()':
0_0_21857280_2417.cpp:63:9: error: expected ';' before 'for'
         for(int i = 1; i <= M; i++)
         ^
0_0_21857280_2417.cpp:63:24: error: 'i' was not declared in this scope
         for(int i = 1; i <= M; i++)
                        ^
0_0_21857280_2417.cpp:79:17: error: 'class std::queue<int>' has no member named 'psuh'
             que.psuh(), inque[v] = true;
                 ^


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-22 17:24:19, Gzip enabled