foo.c: In function 'main':
foo.c:11:19: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=]
11 | printf("%1d %1d %1d %1d %1d",x,y,a,b,c);
| ~~^ ~
| | |
| int long int
| %1ld
foo.c:11:23: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long int' [-Wformat=]
11 | printf("%1d %1d %1d %1d %1d",x,y,a,b,c);
| ~~^ ~
| | |
| int long int
| %1ld
foo.c:11:27: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long int' [-Wformat=]
11 | printf("%1d %1d %1d %1d %1d",x,y,a,b,c);
| ~~^ ~
| | |
| int long int
| %1ld
foo.c:11:31: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long int' [-Wformat=]
11 | printf("%1d %1d %1d %1d %1d",x,y,a,b,c);
| ~~^ ~
| | |
| int long int
| %1ld
foo.c:11:35: warning: format '%d' expects argument of type 'int', but argument 6 has type 'long int' [-Wformat=]
11 | printf("%1d %1d %1d %1d %1d",x,y,a,b,c);
| ~~^ ~
| | |
| int long int
| %1ld
[Hydro](https://hydro.ac)提供评测服务