Take a look at line 30; vector::push_back doesn't actually return anything. Hence, your iterator assignment doesn't work.
John A 1,896 Vampirical Lurker Team Colleague
grvs commented: Helped me in a non-spoon feeding way. Thanks +2
John A 1,896 Vampirical Lurker Team Colleague
~s.o.s~ commented: I guess you were always good at coming up with citations. :-) +28
John A 1,896 Vampirical Lurker Team Colleague