0_0_32867114_16938.cpp:1:7: error: stray '#' in program
<code>#include <bits/stdc++.h>
^
0_0_32867114_16938.cpp:1:1: error: expected unqualified-id before '<' token
<code>#include <bits/stdc++.h>
^
0_0_32867114_16938.cpp: In member function 'void Point::input()':
0_0_32867114_16938.cpp:8:40: error: 'scanf' was not declared in this scope
void input() { scanf("%lf%lf",&x,&y); }
^
0_0_32867114_16938.cpp: In member function 'Point Circle::point(double)':
0_0_32867114_16938.cpp:16:53: error: 'cos' was not declared in this scope
Point point(double a) { return Point(c.x + cos(a)*r, c.y + sin(a)*r); }
^
0_0_32867114_16938.cpp:16:69: error: 'sin' was not declared in this scope
Point point(double a) { return Point(c.x + cos(a)*r, c.y + sin(a)*r); }
^
0_0_32867114_16938.cpp: In member function 'void Circle::input()':
0_0_32867114_16938.cpp:17:50: error: 'scanf' was not declared in this scope
void input() { scanf("%lf%lf%lf",&c.x,&c.y,&r); }
^
0_0_32867114_16938.cpp: In function 'double Length(Vector)':
0_0_32867114_16938.cpp:34:48: error: 'sqrt' was not declared in this scope
double Length(Vector A) { return sqrt(Dot(A, A)); }
^
0_0_32867114_16938.cpp: In function 'double Angle(Vector, Vector)':
0_0_32867114_16938.cpp:35:81: error: 'acos' was not declared in this scope
double Angle(Vector A, Vector B) { return acos(Dot(A, B) / Length(A) / Length(B)); }
^
0_0_32867114_16938.cpp: In function 'double angle(Vector)':
0_0_32867114_16938.cpp:39:47: error: 'atan2' was not declared in this scope
double angle(Vector v) { return atan2(v.y, v.x); }
^
0_0_32867114_16938.cpp: In function 'double DistanceToSeg(Point, Point, Point)':
0_0_32867114_16938.cpp:50:30: error: 'fabs' was not declared in this scope
return fabs(Cross(v1, v2)) / Length(v1);
^
0_0_32867114_16938.cpp: In function 'double DistanceToLine(Point, Point, Point)':
0_0_32867114_16938.cpp:54:29: error: 'fabs' was not declared in this scope
return fabs(Cross(v1,v2)) / Length(v1);
^
0_0_32867114_16938.cpp: In function 'bool SegmentIntersection(Point, Point, Point, Point)':
0_0_32867114_16938.cpp:60:23: error: 'max' was not declared in this scope
return max(A.x,B.x) >= min(C.x,D.x) &&
^
0_0_32867114_16938.cpp:60:39: error: 'min' was not declared in this scope
return max(A.x,B.x) >= min(C.x,D.x) &&
^
0_0_32867114_16938.cpp: In function 'double TriAngleCircleInsection(Circle, Point, Point)':
0_0_32867114_16938.cpp:79:76: 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_32867114_16938.cpp:81:41: 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_32867114_16938.cpp:84:74: 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_32867114_16938.cpp:86:41: 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_32867114_16938.cpp:88:30: 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_32867114_16938.cpp:90:52: 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_32867114_16938.cpp:90: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_32867114_16938.cpp:91:52: 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_32867114_16938.cpp:91:79: 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_32867114_16938.cpp:93:66: error: 'asin' was not declared in this scope
else return asin(Cross(OA,OB)/DOA/DOB)*r*r*0.5;
^
0_0_32867114_16938.cpp:96:74: 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_32867114_16938.cpp:99:42: error: 'asin' was not declared in this scope
return (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_32867114_16938.cpp: In function 'int main()':
0_0_32867114_16938.cpp:108:26: error: 'scanf' was not declared in this scope
while (~scanf("%d",&n)){
^
0_0_32867114_16938.cpp:120:70: 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_32867114_16938.cpp:125:47: error: 'fabs' was not declared in this scope
printf("Case %d: %.10lf\n",_t,fabs(ans)) ;
^
0_0_32867114_16938.cpp:125:48: error: 'printf' was not declared in this scope
printf("Case %d: %.10lf\n",_t,fabs(ans)) ;
^
|