F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_19947636_13530.cpp:5:31: error: 'acos' was not declared in this scope
 const  double  pi =  acos(-1.0) ;
                               ^
0_0_19947636_13530.cpp: In function 'double dist(const point&, const point&)':
0_0_19947636_13530.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_19947636_13530.cpp: In function 'double circle_area_inst(point, double, point, double)':
0_0_19947636_13530.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_19947636_13530.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_19947636_13530.cpp: In function 'int main()':
0_0_19947636_13530.cpp:58:6: error: 'cin' was not declared in this scope
      cin>>t ;
      ^
0_0_19947636_13530.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_19947636_13530.cpp:62:36: error: 'printf' was not declared in this scope
           printf("%.4lf\n" , getr()) ;
                                    ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-26 06:53:22, Gzip enabled