Update main.cpp

inserted ostream