0_0_33864531_32398.cpp:27:24: error: 'Line' is not a type
int disOfLine(Point k, Line a) {
^
0_0_33864531_32398.cpp: In function 'long long int disOfLine(Point, int)':
0_0_33864531_32398.cpp:28:16: error: request for member 'a' in 'a', which is of non-class type 'int'
int x1 = a.a.x, x2 = a.b.x;
^
0_0_33864531_32398.cpp:29:16: error: request for member 'a' in 'a', which is of non-class type 'int'
int y1 = a.a.y, y2 = a.b.y;
^
0_0_33864531_32398.cpp:31:40: error: 'x2' was not declared in this scope
Point m = {x1 - x0, y1 - y0}, n = {x2 - x0, y2 - y0}, perp = {y1 - y2, x2 - x1};
^
0_0_33864531_32398.cpp:31:49: error: 'y2' was not declared in this scope
Point m = {x1 - x0, y1 - y0}, n = {x2 - x0, y2 - y0}, perp = {y1 - y2, x2 - x1};
^
0_0_33864531_32398.cpp:33:66: error: 'B' was not declared in this scope
if(mul(perp, m) * mul(perp, n) < -1e-6) return fabs(A * x0 + B * y0 + C) / sqrt(A * A + B * B);
^
0_0_33864531_32398.cpp:33:75: error: 'C' was not declared in this scope
if(mul(perp, m) * mul(perp, n) < -1e-6) return fabs(A * x0 + B * y0 + C) / sqrt(A * A + B * B);
^
0_0_33864531_32398.cpp:34:25: error: request for member 'a' in 'a', which is of non-class type 'int'
return min(dis(k, a.a, dis(k, a.b)));
^
0_0_33864531_32398.cpp:34:37: error: request for member 'b' in 'a', which is of non-class type 'int'
return min(dis(k, a.a, dis(k, a.b)));
^
0_0_33864531_32398.cpp: At global scope:
0_0_33864531_32398.cpp:36:16: error: 'a' was not declared in this scope
bool cmp(Line &a, Line &b) { return disOfLine({-INF, -INF}, a) < disOfLine({-INF, -INF}, b); }
^
0_0_33864531_32398.cpp:36:25: error: 'b' was not declared in this scope
bool cmp(Line &a, Line &b) { return disOfLine({-INF, -INF}, a) < disOfLine({-INF, -INF}, b); }
^
0_0_33864531_32398.cpp:36:26: error: expression list treated as compound expression in initializer [-fpermissive]
bool cmp(Line &a, Line &b) { return disOfLine({-INF, -INF}, a) < disOfLine({-INF, -INF}, b); }
^
0_0_33864531_32398.cpp:36:28: error: expected ',' or ';' before '{' token
bool cmp(Line &a, Line &b) { return disOfLine({-INF, -INF}, a) < disOfLine({-INF, -INF}, b); }
^
|