Home STD Contest Notification Clarification Problems Ranklist Status Print Sign Out

View Compilation Error

1_866_4607_16215.cpp: In function 'int main()':
1_866_4607_16215.cpp:10:30: error: 'pi' was not declared in this scope
     double ans=(n-1)/2*sin(2*pi/n)+sin(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 02:38:53, Gzip enabled