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_36709109_4509.cpp: In function 'double rad(double)':
0_0_36709109_4509.cpp:67:33: error: 'M_PI' was not declared in this scope
 double rad(double r) { return r*M_PI/180.0;}
                                 ^
0_0_36709109_4509.cpp: In member function 'double Circle::area()':
0_0_36709109_4509.cpp:133:12: error: 'M_PI' was not declared in this scope
     return M_PI*r*r;
            ^
0_0_36709109_4509.cpp: In function 'int main()':
0_0_36709109_4509.cpp:275:77: error: 'M_PI' was not declared in this scope
             <<100*(PolygonCircleArea(HalfplaneIntersection(v),Circle(o,r))/(M_PI*r*r))<<"%\n";
                                                                             ^


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-07-03 17:27:14, Gzip enabled