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_29564688_29530.cpp:74:51: error: 'Edge1' has not been declared
 bool spfa(int start, int n, int *Dist, int *Head, Edge1 *Edge) {
                                                   ^
0_0_29564688_29530.cpp: In function 'bool spfa(int, int, int*, int*, int*)':
0_0_29564688_29530.cpp:88:45: error: request for member 'next' in '*(Edge + ((sizetype)(((long long unsigned int)i) * 4ull)))', which is of non-class type 'int'
   for(int i = Head[u]; i != -1; i = Edge[i].next) {
                                             ^
0_0_29564688_29530.cpp:89:4: error: 'Edge1' was not declared in this scope
    Edge1 e = Edge[i];
    ^
0_0_29564688_29530.cpp:90:12: error: 'e' was not declared in this scope
    int v = e.to;
            ^
0_0_29564688_29530.cpp: In function 'int main()':
0_0_29564688_29530.cpp:132:13: error: 'u' was not declared in this scope
    addedge1(u, v, 1,w);
             ^
0_0_29564688_29530.cpp:132:16: error: 'v' was not declared in this scope
    addedge1(u, v, 1,w);
                ^
0_0_29564688_29530.cpp:132:21: error: 'w' was not declared in this scope
    addedge1(u, v, 1,w);
                     ^
0_0_29564688_29530.cpp:132:22: error: 'addedge1' was not declared in this scope
    addedge1(u, v, 1,w);
                      ^


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-12-02 18:24:38, Gzip enabled