foo.c: In function 'main':
foo.c:5:17: warning: format '%f' expects argument of type 'float *', but argument 2 has type 'double *' [-Wformat=]
5 | scanf("%f%f",&x,&y);
| ~^ ~~
| | |
| | double *
| float *
| %lf
foo.c:5:19: warning: format '%f' expects argument of type 'float *', but argument 3 has type 'double *' [-Wformat=]
5 | scanf("%f%f",&x,&y);
| ~^ ~~
| | |
| | double *
| float *
| %lf
foo.c:8:24: error: invalid operands to binary % (have 'double' and 'double')
8 | printf("%f\n",x%y);
| ^
[Hydro](https://hydro.ac)提供评测服务