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