foo.c: In function 'main':
foo.c:16:15: warning: format '%lf' expects argument of type 'double', but argument 2 has type 'int' [-Wformat=]
16 | printf("%lf", single(output, 0, strlen(output)));
| ~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| | |
| | int
| double
| %d
foo.c:12:5: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
12 | scanf("%s", input);
| ^~~~~~~~~~~~~~~~~~
foo.c: In function 'single':
foo.c:114:1: warning: control reaches end of non-void function [-Wreturn-type]
114 | }
| ^
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务