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_32829055_23256.cpp:3:26: error: 'acos' was not declared in this scope
 const double PI = acos(-1);
                          ^
0_0_32829055_23256.cpp: In function 'double dist(circle, circle)':
0_0_32829055_23256.cpp:11:56: 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_32829055_23256.cpp: In function 'double area(circle, circle)':
0_0_32829055_23256.cpp:14:34: error: 'min' was not declared in this scope
        if((dist(a, b)+min(a.r,b.r))<=max(a.r,b.r))
                                  ^
0_0_32829055_23256.cpp:14:49: error: 'max' was not declared in this scope
        if((dist(a, b)+min(a.r,b.r))<=max(a.r,b.r))
                                                 ^
0_0_32829055_23256.cpp:26:76: error: 'acos' was not declared in this scope
             double d1=2*acos((a.r*a.r+length*length-b.r*b.r)/(2*a.r*length));
                                                                            ^
0_0_32829055_23256.cpp:28:53: error: 'sin' was not declared in this scope
             double area1=a.r*a.r*d1/2-a.r*a.r*sin(d1)/2;
                                                     ^


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-17 00:40:59, Gzip enabled