error: ‘ostream’ does not name a type

Use std::ostream and std::istream everywhere.

ostream and istream are in namespace std

Leave a Comment