Use "using namespace std" for roundf instead of std::roundf.