foo.cc: In function 'int main()':
foo.cc:8:14: warning: format '%lld' expects argument of type 'long long int', but argument 2 has type 'int' [-Wformat=]
8 | printf("%lld\n",3);
| ~~~^ ~
| | |
| | int
| long long int
| %d
foo.cc:12:14: warning: format '%lld' expects argument of type 'long long int', but argument 2 has type 'const char*' [-Wformat=]
12 | printf("%lld\n","18446744073709551616");
| ~~~^ ~~~~~~~~~~~~~~~~~~~~~~
| | |
| | const char*
| long long int
| %s
foo.cc:5:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
5 | scanf("%lld%lld",&a,&b);
| ~~~~~^~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务