0_0_30548087_28349.cpp: In function 'int main()': 0_0_30548087_28349.cpp:7:30: error: 'ans' was not declared in this scope printf("%.10f\n",ans); ^