/ Vijos /

记录详情

Compile Error

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)提供评测服务

信息

递交者
类型
递交
题目
P1621 终极情报网
语言
C
递交时间
2022-01-08 20:20:43
评测时间
2022-01-08 20:20:43
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes