foo.cc: In function 'int main()':
foo.cc:13:19: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
13 | ans += abs(x[n+1>>1]-x[i])+abs(y[n+1>>1]-y[i]);
| ~^~
foo.cc:13:39: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
13 | ans += abs(x[n+1>>1]-x[i])+abs(y[n+1>>1]-y[i]);
| ~^~
foo.cc:6:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
6 | scanf("%d",&n);
| ~~~~~^~~~~~~~~
foo.cc:7:35: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
7 | for (int i = 1;i <= n;i++) scanf("%d%d",&x[i],&y[i]);
| ~~~~~^~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务