0_0_30150566_21685.cpp: In function 'int main()': 0_0_30150566_21685.cpp:10:24: error: 'M_PI' was not declared in this scope s=0.5*n*sin(360/(n)*(M_PI/180));//check ^