0_0_34164882_14577.cpp: In function 'void work()':
0_0_34164882_14577.cpp:13:17: error: request for member 'x' in 'p', which is of non-class type 'P [100003]'
ans = min((p.x-p[j].x)*(p.x-p[j].x) + (p.y-p[j].y)*(p.y-p[j].y), ans);
^
0_0_34164882_14577.cpp:13:30: error: request for member 'x' in 'p', which is of non-class type 'P [100003]'
ans = min((p.x-p[j].x)*(p.x-p[j].x) + (p.y-p[j].y)*(p.y-p[j].y), ans);
^
0_0_34164882_14577.cpp:13:45: error: request for member 'y' in 'p', which is of non-class type 'P [100003]'
ans = min((p.x-p[j].x)*(p.x-p[j].x) + (p.y-p[j].y)*(p.y-p[j].y), ans);
^
0_0_34164882_14577.cpp:13:58: error: request for member 'y' in 'p', which is of non-class type 'P [100003]'
ans = min((p.x-p[j].x)*(p.x-p[j].x) + (p.y-p[j].y)*(p.y-p[j].y), ans);
^
0_0_34164882_14577.cpp: In function 'int main()':
0_0_34164882_14577.cpp:20:22: error: request for member 'x' in 'p', which is of non-class type 'P [100003]'
scanf("%lf%lf", &p.x, &p.y);
^
0_0_34164882_14577.cpp:20:28: error: request for member 'y' in 'p', which is of non-class type 'P [100003]'
scanf("%lf%lf", &p.x, &p.y);
^
0_0_34164882_14577.cpp:22:20: error: 'sort' was not declared in this scope
sort(p, p+n, cmp1),
^
|