foo.cc: In function 'int main()':
foo.cc:10:14: warning: format '%f' expects argument of type 'double', but argument 2 has type 'int' [-Wformat=]
10 | printf("%.2f",n*8/10);
| ~~~^ ~~~~~~
| | |
| | int
| double
| %.2d
foo.cc:16:14: warning: format '%f' expects argument of type 'double', but argument 2 has type 'int' [-Wformat=]
16 | printf("%.2f",n*9/10);
| ~~~^ ~~~~~~
| | |
| | int
| double
| %.2d
foo.cc:22:14: warning: format '%f' expects argument of type 'double', but argument 2 has type 'int' [-Wformat=]
22 | printf("%.2f",n);
| ~~~^ ~
| | |
| | int
| double
| %.2d
[Hydro](https://hydro.ac)提供评测服务