Oops, missed an include (my bad)!
#include <vector>
Edit: And do NOT!!!! do this: "#include <iostream.h>"
Instead, do this: "#include <iostream>"
The first isn't legal C++, nor is it what you want. It's also totally unnecessary to include either, as <fstream> will probably include <iostream> itself.