Main.cc: In function 'int main()': Main.cc:14:32: error: 'setprecision' was not declared in this scope cout<fixed<<setprecision(4)<<ans<<endl; ^