Home STD Contest Notification Clarification Problems Ranklist Status Print Sign Out

View Compilation Error

1_866_2392_13169.cpp: In function 'int main()':
1_866_2392_13169.cpp:13:19: error: 'M_PI' was not declared in this scope
   ans = 0.5*sin(2*M_PI/n)*n +(1 - cos(M_PI/n))*sin(M_PI/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 01:55:46, Gzip enabled