Actually there were some other header files, which have the same method names, causing the compiler confusion. So I just added the vector namespace in front of the method name to work it out. Like this -
vector<Type>::begin()
And yeah it was vector.