Before using vectors, include the vector library at the top of your file. Write #include <vector> below your iostream include. This gives you access to the vector template class. Templates let you create vectors of any type: integers, doubles, strings, even other vectors.
You'll also need using namespace std; or prefix vector with std::. I recommend the namespace line for cleaner code while learning.