0_0_37494134_17453.cpp:3:28: error: 'acos' was not declared in this scope
const double pi = acos(-1.0);
^
0_0_37494134_17453.cpp: In function 'int sgn(double)':
0_0_37494134_17453.cpp:8:12: error: 'fabs' was not declared in this scope
if (fabs(x) < eps) return 0;
^
0_0_37494134_17453.cpp: In function 'int Dcmp(double, double)':
0_0_37494134_17453.cpp:13:16: error: 'fabs' was not declared in this scope
if (fabs(x - y) < eps) return 0;
^
0_0_37494134_17453.cpp: In function 'double Len(Vector)':
0_0_37494134_17453.cpp:29:45: error: 'sqrt' was not declared in this scope
double Len(Vector A) { return sqrt(Dot(A, A)); }
^
0_0_37494134_17453.cpp: In function 'double Angle(Vector, Vector)':
0_0_37494134_17453.cpp:32:75: error: 'acos' was not declared in this scope
double Angle(Vector A, Vector B) { return acos(Dot(A, B) / Len(A) / Len(B)); }
^
0_0_37494134_17453.cpp: In function 'double Distance(Point, Point)':
0_0_37494134_17453.cpp:35:70: error: 'hypot' was not declared in this scope
double Distance(Point A, Point B) { return hypot(A.x - B.x, A.y - B.y); }
^
0_0_37494134_17453.cpp: In function 'double Dist(Point, Point)':
0_0_37494134_17453.cpp:38:23: error: 'sqrt' was not declared in this scope
return sqrt(A.x - B.x) * (A.x - B.x) + (A.y - B.y) * (A.y - B.y);
^
0_0_37494134_17453.cpp: In constructor 'Line::Line(Point, double)':
0_0_37494134_17453.cpp:50:37: error: 'tan' was not declared in this scope
else p2 = (p1 + Point(1, tan(angle)));
^
0_0_37494134_17453.cpp: In function 'double Line_angle(Line)':
0_0_37494134_17453.cpp:57:51: error: 'atan2' was not declared in this scope
double k = atan2(v.p2.y - v.p1.y, v.p2.x - v.p1.x);
^
0_0_37494134_17453.cpp: In function 'double Dis_point_line(Point, Line)':
0_0_37494134_17453.cpp:71:42: error: 'fabs' was not declared in this scope
return fabs(Cross(p - v.p1, v.p2 - v.p1)) / Distance(v.p1, v.p2);
^
0_0_37494134_17453.cpp: In function 'int Line_cross_circle(Line, Circle, Point&, Point&)':
0_0_37494134_17453.cpp:115:35: error: 'sqrt' was not declared in this scope
double k = sqrt(C.r * C.r - d * d);
^
|