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