0_0_37197649_5922.cpp:11:1: error: 'Point' does not name a type
Point pre[4*MAXV], tu[4*MAXV];
^
0_0_37197649_5922.cpp: In function 'double get_dis(Point, Point)':
0_0_37197649_5922.cpp:67:28: error: 'tu' was not declared in this scope
temp = ((b - a) * (tu[i] - b)) / dis(a,b);
^
0_0_37197649_5922.cpp: In function 'double get_h(Point, Point)':
0_0_37197649_5922.cpp:78:18: error: 'tu' was not declared in this scope
temp = ((tu[i] - a) ^ (tu[i] - b))/dis(a,b);
^
0_0_37197649_5922.cpp: In function 'int main()':
0_0_37197649_5922.cpp:93:53: error: 'pre' was not declared in this scope
for(int i = 0; i < N; i++) scanf("%lf%lf", &pre[i].x, &pre[i].y);
^
0_0_37197649_5922.cpp:94:14: error: 'pre' was not declared in this scope
sort(pre, pre + N, cmp1);
^
0_0_37197649_5922.cpp:101:9: error: 'tu' was not declared in this scope
tu[0] = pre[0];
^
|