0_0_20917644_27631.cpp: In function 'double getlen(double, int)': 0_0_20917644_27631.cpp:8:18: error: 'M_PI' was not declared in this scope return 2*r*tan((M_PI/double(n))); ^