0_0_38479116_6871.cpp: In function 'int main()': 0_0_38479116_6871.cpp:17:26: error: 'ans' was not declared in this scope printf("%.3lf\n",ans); ^