changing ostream to iostream
Type naming error