0_0_20553518_25568.cpp: In function 'int main()': 0_0_20553518_25568.cpp:17:34: error: 'M_PI' was not declared in this scope sum += 0.5 * k * sin(M_PI * angle / 180.0); ^