Fix error: ‘std::ostream’ has not been declared