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_36813790_31368.cpp:8:20: error: 'v' has not been declared
 void add(int u,int,v,int dis){
                    ^
0_0_36813790_31368.cpp: In function 'void add(int, int, int, int)':
0_0_36813790_31368.cpp:10:21: error: 'v' was not declared in this scope
  e.nxt=head[u],e.to=v,e.d=dis,head[u]=tot;
                     ^
0_0_36813790_31368.cpp: In function 'void spfa()':
0_0_36813790_31368.cpp:16:13: error: 'o' was not declared in this scope
  memset(cnt,o,sizeof cnt);
             ^
0_0_36813790_31368.cpp: In function 'int main()':
0_0_36813790_31368.cpp:52:16: error: too few arguments to function 'void add(int, int, int, int)'
     add(i,v,dis);
                ^
0_0_36813790_31368.cpp:8:6: note: declared here
 void add(int u,int,v,int dis){
      ^
0_0_36813790_31368.cpp:55:22: error: could not convert 'spfa()' from 'void' to 'bool'
   printf("%s\n",spfa()?"winnable":"hopeless");
                      ^


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 13:13:57, Gzip enabled