0_0_30887494_26841.cpp: In function 'int main()': 0_0_30887494_26841.cpp:15:28: error: 'M_PI' was not declared in this scope ans += sin(t * M_PI / 180) * 0.5 * d * d; ^