0_0_14944839_25184.cpp: In function 'int main()': 0_0_14944839_25184.cpp:15:77: error: 'M_PI' was not declared in this scope ans = sqrt(pow(l, 2.0) - pow(d / 2.0, 2.0)) + d / sqrt(2.0) / 2.0 * M_PI; ^