Home STD Contest Notification Clarification Problems Ranklist Status Print Sign Out

View Compilation Error

1_733_2521_13318.cpp:5:33: error: 'M_PI' was not declared in this scope
 double d = 2.0, h = 2.0, w, s = M_PI * d * d * .25;
                                 ^
1_733_2521_13318.cpp: In function 'double f(double)':
1_733_2521_13318.cpp:22:21: error: 'M_PI' was not declared in this scope
   double S = (ang / M_PI) * s - S1;
                     ^
1_733_2521_13318.cpp: In function 'int main()':
1_733_2521_13318.cpp:62:20: error: 'M_PI' was not declared in this scope
    cout << A * B * M_PI * .25 << endl;
                    ^


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-27 08:29:08, Gzip enabled