Replace newline with std::endl in all std::cout statements.