I have just started learning c++ and was trying to pass an iterator obj to vector of pairs to a function but i am getting getting compilation error:
Code: