I am building a program that takes an input file in this format:
title author title author etc and outputs to screen title (author) title (author) etc
File streams are defined in the header and you are not including it.
You should add:
#include