foo.c: In function 'MinCostMaxFlow':
foo.c:5:7: warning: implicit declaration of function 'Spfa' [-Wimplicit-function-declaration]
5 | while(Spfa())Adjust();
| ^~~~
foo.c:5:14: warning: implicit declaration of function 'Adjust' [-Wimplicit-function-declaration]
5 | while(Spfa())Adjust();
| ^~~~~~
foo.c:6:1: error: 'ans' undeclared (first use in this function)
6 | ans=exp(-ans);
| ^~~
foo.c:6:1: note: each undeclared identifier is reported only once for each function it appears in
foo.c:6:5: warning: implicit declaration of function 'exp' [-Wimplicit-function-declaration]
6 | ans=exp(-ans);
| ^~~
foo.c:6:5: warning: incompatible implicit declaration of built-in function 'exp'
foo.c:1:1: note: include '<math.h>' or provide a declaration of 'exp'
+++ |+#include <math.h>
1 | void MinCostMaxFlow()
foo.c:7:41: warning: left-hand operand of comma expression has no effect [-Wunused-value]
7 | while(ans<0.99999999999999999)ans=ans*10,lovenannan++;
| ^
foo.c:10:1: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
10 | printf("0.");
| ^~~~~~
foo.c:10:1: warning: incompatible implicit declaration of built-in function 'printf'
foo.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf'
+++ |+#include <stdio.h>
1 | void MinCostMaxFlow()
foo.c:22:6: warning: incompatible implicit declaration of built-in function 'printf'
22 | else printf("1.0000");
| ^~~~~~
foo.c:22:6: note: include '<stdio.h>' or provide a declaration of 'printf'
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务