foo.cc: In function 'int main()':
foo.cc:48:13: warning: format '%f' expects argument of type 'double', but argument 2 has type 'long double' [-Wformat=]
48 | printf("%.2f",l);
| ~~~^ ~
| | |
| | long double
| double
| %.2Lf
foo.cc:34:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
34 | scanf("%d",&n);
| ~~~~~^~~~~~~~~
foo.cc:36:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
36 | scanf("%d %d %d",&addr[i].x,&addr[i].y,&addr[i].s);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务