foo.cc: In function 'void init()':
foo.cc:75:33: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
75 | for (int i=1;i<=n;i++) scanf("%d",&a[i].val), a[i].pos=i;
| ~~~~~^~~~~~~~~~~~~~~~
foo.cc:76:33: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
76 | for (int i=1;i<=n;i++) scanf("%d",&b[i].val), b[i].pos=i;
| ~~~~~^~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务