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_21601239_2890.cpp: In function 'bool Bell_Ford(int)':
0_0_21601239_2890.cpp:3:12: error: 'dis' was not declared in this scope
     memset(dis,INF,sizeof(dis));
            ^
0_0_21601239_2890.cpp:3:16: error: 'INF' was not declared in this scope
     memset(dis,INF,sizeof(dis));
                ^
0_0_21601239_2890.cpp:3:31: error: 'memset' was not declared in this scope
     memset(dis,INF,sizeof(dis));
                               ^
0_0_21601239_2890.cpp:6:20: error: 'nodeNum' was not declared in this scope
     for(int j=1;j<=nodeNum-1;j++)
                    ^
0_0_21601239_2890.cpp:9:24: error: 'edgeNum' was not declared in this scope
         for(int i=1;i<=edgeNum;i++){
                        ^
0_0_21601239_2890.cpp:10:20: error: 'e' was not declared in this scope
             if(dis[e[i].from]+e[i].cost<dis[e[i].to]){
                    ^
0_0_21601239_2890.cpp:18:5: error: expected '}' 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-06-28 22:42:41, Gzip enabled