0_0_36557114_6744.cpp: In function 'int main()': 0_0_36557114_6744.cpp:9:30: error: 'M_PI' was not declared in this scope double s=0.5*n*sin(2*M_PI/n)+sin(M_PI/n)*(1-cos(M_PI/n)); ^