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_25118043_13485.cpp: In function 'bool spfa()':
0_0_25118043_13485.cpp:32:34: error: 'inf' was not declared in this scope
  for(int i=0; i<=n; i++){dist[i]=inf; vis[i]=false;}
                                  ^
0_0_25118043_13485.cpp: In function 'int dinic()':
0_0_25118043_13485.cpp:96:32: error: 'inf' was not declared in this scope
   while((inc=dinic_dfs(source, inf))!=0)
                                ^
0_0_25118043_13485.cpp: In function 'int main()':
0_0_25118043_13485.cpp:110:28: error: 'reture' was not declared in this scope
   if(n==1) {printf("0\n"); reture 0;}//特判,不存在最短路径   
                            ^
0_0_25118043_13485.cpp:123:18: error: 'inf' was not declared in this scope
   if(dist[sink]==inf) {printf("0\n"); return 0;} //特判,不存在最短路径 
                  ^


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-28 09:23:00, Gzip enabled