0_0_31309824_1046.cpp:5:28: error: 'acos' was not declared in this scope
const double pi = acos(-1.0); //高精度圆周率
^
0_0_31309824_1046.cpp: In function 'int sgn(double)':
0_0_31309824_1046.cpp:9:12: error: 'fabs' was not declared in this scope
if (fabs(x) < eps) return 0;
^
0_0_31309824_1046.cpp: In function 'int Dcmp(double, double)':
0_0_31309824_1046.cpp:13:16: error: 'fabs' was not declared in this scope
if (fabs(x - y) < eps) return 0;
^
0_0_31309824_1046.cpp: In function 'double Len(Vector)':
0_0_31309824_1046.cpp:31:45: error: 'sqrt' was not declared in this scope
double Len(Vector A) { return sqrt(Dot(A, A)); } //向量的长度
^
0_0_31309824_1046.cpp: In function 'double TriAngleCircleInsection(Circle, Point, Point)':
0_0_31309824_1046.cpp:50:75: error: 'sqrt' was not declared in this scope
double x = (Dot(BA, BC) + sqrt(r*r*DAB*DAB - Cross(BA, BC)*Cross(BA, BC))) / DAB;
^
0_0_31309824_1046.cpp:52:45: error: 'asin' was not declared in this scope
return asin(TS*(1 - x / DAB) * 2 / r / DOA)*r*r*0.5 + TS*x / DAB;
^
0_0_31309824_1046.cpp:55:75: error: 'sqrt' was not declared in this scope
double y = (Dot(AB, AC) + sqrt(r*r*DAB*DAB - Cross(AB, AC)*Cross(AB, AC))) / DAB;
^
0_0_31309824_1046.cpp:57:45: error: 'asin' was not declared in this scope
return asin(TS*(1 - y / DAB) * 2 / r / DOB)*r*r*0.5 + TS*y / DAB;
^
0_0_31309824_1046.cpp:59:29: error: 'fabs' was not declared in this scope
else if (fabs(Cross(OA, OB)) >= r*DAB || Dot(AB, AC) <= 0 || Dot(BA, BC) <= 0) {
^
0_0_31309824_1046.cpp:61:45: error: 'acos' was not declared in this scope
if (Cross(OA, OB) < 0) return (-acos(-1.0) - asin(Cross(OA, OB) / DOA / DOB))*r*r*0.5;
^
0_0_31309824_1046.cpp:61:79: error: 'asin' was not declared in this scope
if (Cross(OA, OB) < 0) return (-acos(-1.0) - asin(Cross(OA, OB) / DOA / DOB))*r*r*0.5;
^
0_0_31309824_1046.cpp:62:26: error: 'acos' was not declared in this scope
else return (acos(-1.0) - asin(Cross(OA, OB) / DOA / DOB))*r*r*0.5;
^
0_0_31309824_1046.cpp:62:60: error: 'asin' was not declared in this scope
else return (acos(-1.0) - asin(Cross(OA, OB) / DOA / DOB))*r*r*0.5;
^
0_0_31309824_1046.cpp:64:45: error: 'asin' was not declared in this scope
else return asin(Cross(OA, OB) / DOA / DOB)*r*r*0.5;
^
0_0_31309824_1046.cpp:67:75: error: 'sqrt' was not declared in this scope
double x = (Dot(BA, BC) + sqrt(r*r*DAB*DAB - Cross(BA, BC)*Cross(BA, BC))) / DAB;
^
0_0_31309824_1046.cpp:71:40: error: 'asin' was not declared in this scope
(asin(TS*(1 - x / DAB) * 2 / r / DOA) + asin(TS*(1 - y / DAB) * 2 / r / DOB))*r*r*0.5 + TS*((x + y) / DAB - 1);
^
0_0_31309824_1046.cpp: In function 'int main()':
0_0_31309824_1046.cpp:89:66: error: 'sqrt' was not declared in this scope
Circle C = Circle(Point(-D*0.5, -E*0.5), sqrt(D*D + E*E - 4.0*F)*0.5);
^
0_0_31309824_1046.cpp:94:47: error: 'fabs' was not declared in this scope
printf("Case %d: %.10f\n", iCase++, fabs(ans));
^
|