0_0_29809986_23618.cpp: In function 'int main()': 0_0_29809986_23618.cpp:29:40: error: 'n' was not declared in this scope cout<<fixed<<setprecision(12)<<ans+n<<endl; ^