Main.cc: In function 'int main()': Main.cc:7:32: error: 'setprecision' is not a member of 'std' std::cout << std::fixed << std::setprecision(2) << num << std::endl; ^