I tried with this code and it works:
int findActionWordLocation(){
vector<string>::iterator it;
it=find(words.begin(),words.end(),"Verbal Predicate");
//it++;
if(it != words.end())
std::cout<< "Found At :" << (it-words.begin()) ;
return (it-words.begin());
}