foo.c: In function 'main':
foo.c:6:17: warning: unknown conversion type character '.' in format [-Wformat=]
6 | scanf("%.2f %.2f %.2f",&a,&m,&k);
| ^
foo.c:6:22: warning: unknown conversion type character '.' in format [-Wformat=]
6 | scanf("%.2f %.2f %.2f",&a,&m,&k);
| ^
foo.c:6:27: warning: unknown conversion type character '.' in format [-Wformat=]
6 | scanf("%.2f %.2f %.2f",&a,&m,&k);
| ^
foo.c:6:15: warning: too many arguments for format [-Wformat-extra-args]
6 | scanf("%.2f %.2f %.2f",&a,&m,&k);
| ^~~~~~~~~~~~~~~~
foo.c:13:20: warning: format '%f' expects argument of type 'double', but argument 2 has type 'int' [-Wformat=]
13 | printf("%.2f",p);
| ~~~^ ~
| | |
| | int
| double
| %.2d
[Hydro](https://hydro.ac)提供评测服务