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_39301197_25918.cpp: In function 'double dis()':
0_0_39301197_25918.cpp:28:25: error: 'fabs' was not declared in this scope; did you mean 'labs'?
   28 |         return sqrt(pow(fabs(A.x - B.x), 2) + pow(fabs(A.y - B.y), 2));
      |                         ^~~~
      |                         labs
0_0_39301197_25918.cpp:28:21: error: 'pow' was not declared in this scope
   28 |         return sqrt(pow(fabs(A.x - B.x), 2) + pow(fabs(A.y - B.y), 2));
      |                     ^~~
0_0_39301197_25918.cpp:28:16: error: 'sqrt' was not declared in this scope
   28 |         return sqrt(pow(fabs(A.x - B.x), 2) + pow(fabs(A.y - B.y), 2));
      |                ^~~~
0_0_39301197_25918.cpp: In function 'double solve()':
0_0_39301197_25918.cpp:35:21: error: 'acos' was not declared in this scope
   35 |         double a1 = acos(d * d / (2 * d * R));
      |                     ^~~~
0_0_39301197_25918.cpp:36:40: error: 'sin' was not declared in this scope
   36 |         double ans1 = 2 * a1 * R * R - sin(a1) * d * R;
      |                                        ^~~
0_0_39301197_25918.cpp: In function 'int main()':
0_0_39301197_25918.cpp:15:12: error: 'acos' was not declared in this scope
   15 | #define pi acos(-1.0)
      |            ^~~~
0_0_39301197_25918.cpp:52:56: note: in expansion of macro 'pi'
   52 |                         printf("Case #%d: %.6lf\n", k, pi * (R * R - r * r));
      |                                                        ^~


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-16 18:18:38, Gzip enabled