0_0_26270239_18476.cpp: In function 'bool cmpy(int, int)':
0_0_26270239_18476.cpp:10:12: error: 'p' was not declared in this scope
return p[tmp[a]].y<p[tmp[b]].y;
^
0_0_26270239_18476.cpp:10:14: error: 'tmp' was not declared in this scope
return p[tmp[a]].y<p[tmp[b]].y;
^
0_0_26270239_18476.cpp: In function 'double solve(int, int)':
0_0_26270239_18476.cpp:37:43: error: request for member 'y' in 'tmp[j]', which is of non-class type 'int'
for(int j=i+1;j<idex&&fabs(tmp[j].y-tmp[i].y)<d;j++)
^
0_0_26270239_18476.cpp:37:52: error: request for member 'y' in 'tmp[i]', which is of non-class type 'int'
for(int j=i+1;j<idex&&fabs(tmp[j].y-tmp[i].y)<d;j++)
^
0_0_26270239_18476.cpp:38:31: error: could not convert 'tmp[i]' from 'int' to 'point'
d=min(d,dist(tmp[i],tmp[j]));
^
|