Almost forgot that I had removed the "using namespace std;" bad style from the code.