foo.c: In function 'v':
foo.c:5:4: warning: implicit declaration of function 'abs' [-Wimplicit-function-declaration]
k=abs(x[i]-x[j])+abs(y[i]-y[j]);
^~~
foo.c: In function 'main':
foo.c:10:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^~~~~~~~~~~~~~
foo.c:13:4: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n2);
^~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务