0_0_35692760_11179.cpp: In function 'int main()': 0_0_35692760_11179.cpp:16:35: error: 'M_PI' was not declared in this scope ans+=d*d*sin(num[i]*2*M_PI/360)/2; ^