0_0_34802056_9223.cpp: In function 'int main()': 0_0_34802056_9223.cpp:17:29: error: expected ';' before ')' token ans+=m*m*sin(k)/2.0); ^ 0_0_34802056_9223.cpp:19:25: error: expected ')' before ';' token printf("%.3lf\n",ans; ^