foo.c: In function 'main':
foo.c:12:18: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=]
12 | printf("%d\n%d\n%d\n",sum,pro,rem);
| ~^ ~~~
| | |
| int long int
| %ld
foo.c:12:22: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long int' [-Wformat=]
12 | printf("%d\n%d\n%d\n",sum,pro,rem);
| ~^ ~~~
| | |
| int long int
| %ld
foo.c:12:26: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long int' [-Wformat=]
12 | printf("%d\n%d\n%d\n",sum,pro,rem);
| ~^ ~~~
| | |
| int long int
| %ld
[Hydro](https://hydro.ac)提供评测服务