You forgot to add std:: namespace prefix to vector class name.
use:
std::vector
everywhere qualify it by std::
or do:
using std::vector;
in your cpp file.
You have to do this because vector is defined in the std namespace and you do not tell your program to find it in std namespace, you need to tell that.