Main.cc: In function 'int main()': Main.cc:8:35: error: 'setprecision' was not declared in this scope cout << fixed << setprecision(5) << result << endl; ^