foo.cc: In function 'int main()':
foo.cc:5:18: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long unsigned int' [-Wformat=]
5 | printf("%d %d\n",sizeof(float),sizeof(double));
| ~^ ~~~~~~~~~~~~~
| | |
| int long unsigned int
| %ld
foo.cc:5:21: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long unsigned int' [-Wformat=]
5 | printf("%d %d\n",sizeof(float),sizeof(double));
| ~^ ~~~~~~~~~~~~~~
| | |
| int long unsigned int
| %ld
[Hydro](https://hydro.ac)提供评测服务