0_0_32724192_1038.cpp: In function 'int main()': 0_0_32724192_1038.cpp:30:33: error: 'ans' was not declared in this scope cout<<fixed<<setprecision(7)<<ans<<endl; ^