0_0_36455275_22646.cpp:48:1: error: 'line' does not name a type
line half[MAXN], temp[MAXN]; //half为半平面交函数的输入数据,里面的元素通过add函数添加
^
0_0_36455275_22646.cpp: In function 'double xmult(double, double, double, double)':
0_0_36455275_22646.cpp:58:9: error: named return values are no longer supported
return x1
^
0_0_36455275_22646.cpp:64:17: error: 'u' was not declared in this scope
double a1 = u.b.y - u.a.y, b1 = u.a.x - u.b.x;
^
0_0_36455275_22646.cpp:65:27: error: 'b1' was not declared in this scope
double c1 = u.b.y * (-b1) - u.b.x * a1;
^
0_0_36455275_22646.cpp:66:17: error: 'v' was not declared in this scope
double a2 = v.b.y - v.a.y, b2 = v.a.x - v.b.x;
^
0_0_36455275_22646.cpp:67:27: error: 'b2' was not declared in this scope
double c2 = v.b.y * (-b2) - v.b.x * a2;
^
0_0_36455275_22646.cpp: In function 'bool comp(int, int)':
0_0_36455275_22646.cpp:74:22: error: 'half' was not declared in this scope
return xmult(half[j].a, half[j].b, half[i].a) > -eps;
^
0_0_36455275_22646.cpp: In function 'void Half_Intersection(polygon&)':
0_0_36455275_22646.cpp:85:25: error: 'half' was not declared in this scope
ata2[i] = atan2(half[i].b.y - half[i].a.y, half[i].b.x - half[i].a.x);
^
0_0_36455275_22646.cpp:99:5: error: 'temp' was not declared in this scope
temp[0] = half[id[0]]; //添加初始边
^
0_0_36455275_22646.cpp:99:15: error: 'half' was not declared in this scope
temp[0] = half[id[0]]; //添加初始边
^
0_0_36455275_22646.cpp:104:77: error: 'line_intersection' was not declared in this scope
line_intersection(temp[top - 1], temp[top])) < -eps)
^
0_0_36455275_22646.cpp:107:77: error: 'line_intersection' was not declared in this scope
line_intersection(temp[bot], temp[bot + 1])) < -eps)
^
0_0_36455275_22646.cpp:114:73: error: 'line_intersection' was not declared in this scope
line_intersection(temp[top - 1], temp[top])) < -eps)
^
0_0_36455275_22646.cpp:117:73: error: 'line_intersection' was not declared in this scope
line_intersection(temp[bot + 1], temp[bot])) < -eps)
^
0_0_36455275_22646.cpp:123:62: error: 'line_intersection' was not declared in this scope
pg.p[pg.n++] = line_intersection(temp[i - 1], temp[i]);
^
0_0_36455275_22646.cpp: In function 'void add(point, point)':
0_0_36455275_22646.cpp:128:5: error: 'half' was not declared in this scope
half[numh].a = a;
^
0_0_36455275_22646.cpp: In function 'double cal(double, double)':
0_0_36455275_22646.cpp:179:22: error: 'convex_hull2' was not declared in this scope
convex_hull2(size);
^
|