foo.c: In function 'main':
foo.c:5:17: warning: format '%f' expects argument of type 'float *', but argument 2 has type 'int *' [-Wformat=]
5 | scanf("%f%f%f",&a,&m,&k);
| ~^ ~~
| | |
| | int *
| float *
| %d
foo.c:5:19: warning: format '%f' expects argument of type 'float *', but argument 3 has type 'int *' [-Wformat=]
5 | scanf("%f%f%f",&a,&m,&k);
| ~^ ~~
| | |
| float * int *
| %d
foo.c:5:21: warning: format '%f' expects argument of type 'float *', but argument 4 has type 'int *' [-Wformat=]
5 | scanf("%f%f%f",&a,&m,&k);
| ~^ ~~
| | |
| float * int *
| %d
foo.c:13:28: warning: format '%f' expects argument of type 'double', but argument 2 has type 'int' [-Wformat=]
13 | printf("%.2f",(a/20-m)*k);
| ~~~^ ~~~~~~~~~~
| | |
| double int
| %.2d
[Hydro](https://hydro.ac)提供评测服务