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_39859422_22567.cpp: In function 'int main()':
0_0_39859422_22567.cpp:27:40: error: 'M_PI' was not declared in this scope
   27 |             if(alpha < 0) alpha += 2 * M_PI;
      |                                        ^~~~
0_0_39859422_22567.cpp:36:48: error: 'M_PI' was not declared in this scope
   36 |             if(theta_min < 0) theta_min += 2 * M_PI;
      |                                                ^~~~
0_0_39859422_22567.cpp:37:33: error: 'M_PI' was not declared in this scope
   37 |             if(theta_max >= 2 * M_PI) theta_max -= 2 * M_PI;
      |                                 ^~~~
0_0_39859422_22567.cpp:42:61: error: 'M_PI' was not declared in this scope
   42 |                 intervals.push_back(Interval{theta_min, 2 * M_PI});
      |                                                             ^~~~
0_0_39859422_22567.cpp:70:66: error: 'M_PI' was not declared in this scope
   70 |                     covered = (s - 1e-9 <= point && point <= 2 * M_PI + 1e-9) || (0.0 - 1e-9 <= point && point <= e + 1e-9);
      |                                                                  ^~~~
0_0_39859422_22567.cpp:96:62: error: 'M_PI' was not declared in this scope
   96 |                         covered = (s - 1e-9 <= p && p <= 2 * M_PI + 1e-9) || (0.0 - 1e-9 <= p && p <= e + 1e-9);
      |                                                              ^~~~


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2025-01-10 03:30:19, Gzip enabled