foo.cc: In function 'bool cmp(lx, lx)':
foo.cc:13:9: error: 'sqr' was not declared in this scope; did you mean 'sqrt'?
13 | return (sqr(a.x)+sqr(a.y))<(sqr(b.x)+sqr(b.y));
| ^~~
| sqrt
foo.cc: In function 'int main()':
foo.cc:23:32: error: 'sqr' was not declared in this scope; did you mean 'sqrt'?
23 | ans=sqrt(sqrt((p[n].x-p[1].x))+sqr((p[n].y-p[1].y)));
| ^~~
| sqrt
foo.cc:21:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
21 | scanf("%lf%lf",&p[i].x,&p[i].y);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务