Update main.cpp

Vector iterator compiling error