0_0_21601307_13605.cpp:5:31: error: 'acos' was not declared in this scope
const double pi = acos(-1.0) ;
^
0_0_21601307_13605.cpp: In function 'double dist(const point&, const point&)':
0_0_21601307_13605.cpp:17:62: 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_21601307_13605.cpp: In function 'double circle_area_inst(point, double, point, double)':
0_0_21601307_13605.cpp:25:61: error: 'acos' was not declared in this scope
double a1 = acos( (r1*r1 + d*d - r2*r2) / (2.0*r1*d) ) ;
^
0_0_21601307_13605.cpp:27:41: error: 'sin' was not declared in this scope
return r1*r1*(a1 - 0.5*sin(2.0*a1) ) + r2*r2*(a2 - 0.5*sin(2.0*a2) ) ;
^
0_0_21601307_13605.cpp: In function 'int main()':
0_0_21601307_13605.cpp:58:6: error: 'cin' was not declared in this scope
cin>>t ;
^
0_0_21601307_13605.cpp:61:82: error: 'scanf' was not declared in this scope
for(i = 1 ; i <= n ; i++) scanf("%lf%lf%lf" , &o[i].x , &o[i].y , &r[i]) ;
^
0_0_21601307_13605.cpp:62:36: error: 'printf' was not declared in this scope
printf("%.4lf\n" , getr()) ;
^
|