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_19730820_5125.cpp: In function 'int main()':
0_0_19730820_5125.cpp:25:13: error: could not convert 'floyd()' from 'void' to 'bool'
   if(!floyd()){
             ^
0_0_19730820_5125.cpp:25:13: error: in argument to unary !
0_0_19730820_5125.cpp:29:16: error: void value not ignored as it ought to be
   bool s=spfa(1);
                ^
0_0_19730820_5125.cpp: In function 'void Init()':
0_0_19730820_5125.cpp:46:8: error: invalid types 'int [105][105][int [105]]' for array subscript
    v1[a][b]=1;
        ^
0_0_19730820_5125.cpp: In function 'void add(int, int, int)':
0_0_19730820_5125.cpp:57:8: error: invalid conversion from 'int*' to 'int' [-fpermissive]
  v[p].s=a;
        ^
0_0_19730820_5125.cpp:58:9: error: 'b' was not declared in this scope
  v[p].e=b;
         ^
0_0_19730820_5125.cpp: In function 'bool spfa(int)':
0_0_19730820_5125.cpp:63:23: error: ambiguating new declaration of 'bool spfa(int)'
 inline bool spfa(int x){
                       ^
0_0_19730820_5125.cpp:15:13: note: old declaration 'void spfa(int)'
 inline void spfa(int x);
             ^
0_0_19730820_5125.cpp:71:2: error: expected ';' before 't'
  t[x]++;
  ^
0_0_19730820_5125.cpp:74:13: error: 'front' was not declared in this scope
   for(int i=front[k];i!=-1;i=v[i].next){
             ^
0_0_19730820_5125.cpp:79:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
      if(t>n) return 1;
           ^
0_0_19730820_5125.cpp: In function 'void floyd()':
0_0_19730820_5125.cpp:98:21: error: return-statement with a value, in function returning 'void' [-fpermissive]
  if(d[1][n]) return 1;
                     ^
0_0_19730820_5125.cpp:99:14: error: return-statement with a value, in function returning 'void' [-fpermissive]
  else 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-11-22 21:36:12, Gzip enabled