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