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;
^
|