0_0_36632603_27213.cpp:4:28: error: 'acos' was not declared in this scope
const double pi = acos(-1.0);
^
0_0_36632603_27213.cpp: In function 'int sgn(double)':
0_0_36632603_27213.cpp:8:11: error: 'fabs' was not declared in this scope
if(fabs(x) < eps)return 0;
^
0_0_36632603_27213.cpp: In member function 'void Point::input()':
0_0_36632603_27213.cpp:45:23: error: 'scanf' was not declared in this scope
scanf("%lf%lf",&x,&y);
^
0_0_36632603_27213.cpp: In member function 'void Point::output()':
0_0_36632603_27213.cpp:48:27: error: 'printf' was not declared in this scope
printf("%.2f %.2f\n",x,y);
^
0_0_36632603_27213.cpp: In member function 'double Point::len()':
0_0_36632603_27213.cpp:69:19: error: 'hypot' was not declared in this scope
return hypot(x,y);//¿âº¯Êý
^
0_0_36632603_27213.cpp: In member function 'double Point::distance(Point)':
0_0_36632603_27213.cpp:77:27: error: 'hypot' was not declared in this scope
return hypot(x-p.x,y-p.y);
^
0_0_36632603_27213.cpp: In member function 'double Point::rad(Point, Point)':
0_0_36632603_27213.cpp:93:38: error: 'fabs' was not declared in this scope
return fabs(atan2( fabs((a-p)^(b-p)),(a-p)*(b-p) ));
^
0_0_36632603_27213.cpp:93:52: error: 'atan2' was not declared in this scope
return fabs(atan2( fabs((a-p)^(b-p)),(a-p)*(b-p) ));
^
0_0_36632603_27213.cpp:93:53: error: 'fabs' was not declared in this scope
return fabs(atan2( fabs((a-p)^(b-p)),(a-p)*(b-p) ));
^
0_0_36632603_27213.cpp:93:53: error: redeclaration of '<typeprefixerror>fabs'
0_0_36632603_27213.cpp:93:38: note: previous declaration '<typeprefixerror>fabs'
return fabs(atan2( fabs((a-p)^(b-p)),(a-p)*(b-p) ));
^
0_0_36632603_27213.cpp: In member function 'Point Point::rotate(Point, double)':
0_0_36632603_27213.cpp:113:23: error: 'cos' was not declared in this scope
double c = cos(angle), s = sin(angle);
^
0_0_36632603_27213.cpp:114:34: error: 's' was not declared in this scope
return Point(p.x + v.x*c - v.y*s,p.y + v.x*s + v.y*c);
^
0_0_36632603_27213.cpp: In constructor 'Line::Line(Point, double)':
0_0_36632603_27213.cpp:165:30: error: 'tan' was not declared in this scope
e = (s + Point(1,tan(angle)));
^
0_0_36632603_27213.cpp: In member function 'void Line::adjust()':
0_0_36632603_27213.cpp:188:20: error: 'swap' was not declared in this scope
if(e < s)swap(s,e);
^
0_0_36632603_27213.cpp: In member function 'double Line::angle()':
0_0_36632603_27213.cpp:196:35: error: 'atan2' was not declared in this scope
double k = atan2(e.y-s.y,e.x-s.x);
^
0_0_36632603_27213.cpp: In member function 'double Line::dispointtoline(Point)':
0_0_36632603_27213.cpp:263:26: error: 'fabs' was not declared in this scope
return fabs((p-s)^(e-s))/length();
^
0_0_36632603_27213.cpp: In member function 'double Line::dispointtoseg(Point)':
0_0_36632603_27213.cpp:268:42: error: 'min' was not declared in this scope
return min(p.distance(s),p.distance(e));
^
0_0_36632603_27213.cpp: In member function 'double Line::dissegtoseg(Line)':
0_0_36632603_27213.cpp:274:55: error: 'min' was not declared in this scope
return min(min(dispointtoseg(v.s),dispointtoseg(v.e)),min(v.dispointtoseg(s),v.dispointtoseg(e)));
^
0_0_36632603_27213.cpp:274:99: error: 'min' was not declared in this scope
return min(min(dispointtoseg(v.s),dispointtoseg(v.e)),min(v.dispointtoseg(s),v.dispointtoseg(e)));
^
0_0_36632603_27213.cpp:274:99: error: redeclaration of '<typeprefixerror>min'
0_0_36632603_27213.cpp:274:55: note: previous declaration '<typeprefixerror>min'
return min(min(dispointtoseg(v.s),dispointtoseg(v.e)),min(v.dispointtoseg(s),v.dispointtoseg(e)));
^
0_0_36632603_27213.cpp: In constructor 'circle::circle(Point, Point, Point, bool)':
0_0_36632603_27213.cpp:314:35: error: 'atan2' was not declared in this scope
double m = atan2(b.y-a.y,b.x-a.x), n = atan2(c.y-a.y,c.x-a.x);
^
0_0_36632603_27213.cpp:316:26: error: 'n' was not declared in this scope
u.e = u.s + Point(cos((n+m)/2),sin((n+m)/2));
^
0_0_36632603_27213.cpp:316:32: error: 'cos' was not declared in this scope
u.e = u.s + Point(cos((n+m)/2),sin((n+m)/2));
^
0_0_36632603_27213.cpp:316:45: error: 'sin' was not declared in this scope
u.e = u.s + Point(cos((n+m)/2),sin((n+m)/2));
^
0_0_36632603_27213.cpp: In member function 'void circle::input()':
0_0_36632603_27213.cpp:326:17: error: 'scanf' was not declared in this scope
scanf("%lf",&r);
^
0_0_36632603_27213.cpp: In member function 'void circle::output()':
0_0_36632603_27213.cpp:330:41: error: 'printf' was not declared in this scope
printf("%.2lf %.2lf %.2lf\n",p.x,p.y,r);
^
0_0_36632603_27213.cpp: In member function 'int circle::relationcircle(circle)':
0_0_36632603_27213.cpp:384:24: error: 'fabs' was not declared in this scope
double l = fabs(r-v.r);
^
0_0_36632603_27213.cpp: In member function 'int circle::pointcrosscircle(circle, Point&, Point&)':
0_0_36632603_27213.cpp:397:26: error: 'sqrt' was not declared in this scope
double h = sqrt(r*r-l*l);
^
0_0_36632603_27213.cpp: In member function 'int circle::pointcrossline(Line, Point&, Point&)':
0_0_36632603_27213.cpp:410:19: error: 'sqrt' was not declared in this scope
d = sqrt(r*r-d*d);
^
0_0_36632603_27213.cpp: In member function 'int circle::tangentline(Point, Line&, Line&)':
0_0_36632603_27213.cpp:489:26: error: 'sqrt' was not declared in this scope
double h = sqrt(r*r-l*l);
^
0_0_36632603_27213.cpp: In member function 'double circle::areacircle(circle)':
0_0_36632603_27213.cpp:498:41: error: 'min' was not declared in this scope
if(rel <= 2)return min(area(),v.area());
^
0_0_36632603_27213.cpp:501:47: error: 'sqrt' was not declared in this scope
double ss = 2*sqrt(hf*(hf-r)*(hf-v.r)*(hf-d));
^
0_0_36632603_27213.cpp:502:47: error: 'acos' was not declared in this scope
double a1 = acos((r*r+d*d-v.r*v.r)/(2.0*r*d));
^
0_0_36632603_27213.cpp: In member function 'double circle::areatriangle(Point, Point)':
0_0_36632603_27213.cpp:522:63: error: 'swap' was not declared in this scope
if(len == 4 && sgn((q[0]-q[1])*(q[2]-q[1]))>0)swap(q[1],q[2]);
^
0_0_36632603_27213.cpp:530:36: error: 'fabs' was not declared in this scope
res += fabs((q[i]-p)^(q[i+1]-p))/2.0;
^
0_0_36632603_27213.cpp: In member function 'void polygon::norm()':
0_0_36632603_27213.cpp:592:43: error: 'min' was not declared in this scope
for(int i = 1;i < n;i++)mi = min(mi,p[i]);
^
0_0_36632603_27213.cpp:593:21: error: 'sort' was not declared in this scope
sort(p,p+n,cmp(mi));
^
0_0_36632603_27213.cpp: In member function 'void polygon::getconvex(polygon&)':
0_0_36632603_27213.cpp:601:13: error: 'sort' was not declared in this scope
sort(p,p+n);
^
0_0_36632603_27213.cpp:603:28: error: 'min' was not declared in this scope
for(int i = 0;i < min(n,2);i++){
^
0_0_36632603_27213.cpp: In member function 'bool polygon::isconvex()':
0_0_36632603_27213.cpp:656:27: error: 'memset' was not declared in this scope
memset(s,false,sizeof(s));
^
0_0_36632603_27213.cpp: In member function 'double polygon::getarea()':
0_0_36632603_27213.cpp:717:18: error: 'fabs' was not declared in this scope
return fabs(sum)/2;
^
0_0_36632603_27213.cpp: In member function 'double polygon::areacircle(circle)':
0_0_36632603_27213.cpp:752:18: error: 'fabs' was not declared in this scope
return fabs(ans);
^
0_0_36632603_27213.cpp: At global scope:
0_0_36632603_27213.cpp:808:1: error: 'vector' does not name a type
vector<Point> convexCut(const vector<Point> &ps,Point q1,Point q2){
^
0_0_36632603_27213.cpp: In member function 'void halfplane::calcangle()':
0_0_36632603_27213.cpp:837:32: error: 'atan2' was not declared in this scope
angle = atan2(e.y-s.y,e.x-s.x);
^
0_0_36632603_27213.cpp: In member function 'bool halfplanes::halfplaneinsert()':
0_0_36632603_27213.cpp:865:15: error: 'sort' was not declared in this scope
sort(hp,hp+n);
^
0_0_36632603_27213.cpp: In member function 'double circles::areaarc(double, double)':
0_0_36632603_27213.cpp:942:28: error
|