foo.cc: In function 'int main()':
foo.cc:9:31: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
9 | for(i=1;i<=n;i++) scanf("%d",&a[0][i]),a[0][i]--;
| ~^ ~~~~~~~~
| | |
| | long long int*
| int*
| %lld
foo.cc:31:18: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
31 | printf("%d%c",ans[i]+1,i==(n<<1)?'\n':' ');
| ~^ ~~~~~~~~
| | |
| int long long int
| %lld
foo.cc:8:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
8 | scanf("%lld%lld",&n,&m);
| ~~~~~^~~~~~~~~~~~~~~~~~
foo.cc:9:28: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
9 | for(i=1;i<=n;i++) scanf("%d",&a[0][i]),a[0][i]--;
| ~~~~~^~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务