Main.cc: In function ‘int main()’: Main.cc:25:18: error: ‘setprecision’ was not declared in this scope cout<< fixed << setprecision(2)<<(double)k/100; ^~~~~~~~~~~~