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_31762856_6369.cpp: In function 'void add_edge(int, int, int)':
0_0_31762856_6369.cpp:15:4: error: 'cnt' was not declared in this scope
  e[cnt].v=v;e[cnt].val=val;
    ^
0_0_31762856_6369.cpp:16:13: error: 'head' was not declared in this scope
  e[cnt].nxt=head[u];
             ^
0_0_31762856_6369.cpp: In function 'void spfa(int, int)':
0_0_31762856_6369.cpp:32:13: error: 'head' was not declared in this scope
   for(int i=head[u];i!=-1;i=e[i].nxt)
             ^
0_0_31762856_6369.cpp:32:32: error: invalid types 'int[int]' for array subscript
   for(int i=head[u];i!=-1;i=e[i].nxt)
                                ^
0_0_31762856_6369.cpp:34:13: error: invalid types 'int[int]' for array subscript
    int v=e[i].v;
             ^
0_0_31762856_6369.cpp:35:24: error: invalid types 'int[int]' for array subscript
    if(dis[v]>dis[u]+e[i].val)
                        ^
0_0_31762856_6369.cpp:37:22: error: invalid types 'int[int]' for array subscript
     dis[v]=dis[u]+e[i].val
                      ^
0_0_31762856_6369.cpp: At global scope:
0_0_31762856_6369.cpp:51:1: error: expected ',' or ';' at end of input
 } 
 ^


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-30 06:29:53, Gzip enabled