You need to deside what do you want, there are two possibilities:
1. Using of
vector<string> nameList;
nameList.push_back(line);
(not a pointer).
2. Using a pointer like this:
vector<string>* nameList;
nameList = new vector<string>();
nameList->push_back(line);
delete nameList;
You can't mix this two methods :)