Iterator doubt scope

I am getting ForwardIterator not declared in this scope