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_39172251_15913.cpp:22:19: error: 'acos' was not declared in this scope
   22 | const double PI = acos(-1);
      |                   ^~~~
0_0_39172251_15913.cpp: In function 'double rotating_calipers(point*, int)':
0_0_39172251_15913.cpp:91:16: error: 'fabs' was not declared in this scope; did you mean 'labs'?
   91 |         while (fabs(cross(p[i], p[i+1], p[k1])) < fabs(cross(p[i], p[i+1], p[k1+1])))
      |                ^~~~
      |                labs
0_0_39172251_15913.cpp:101:22: error: 'fabs' was not declared in this scope; did you mean 'labs'?
  101 |         double tmp = fabs(cross(p[i],p[i+1],p[k1]));
      |                      ^~~~
      |                      labs


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-22 22:05:11, Gzip enabled