Inicializar el iterador vectorial con la función final ()

// iter points to the last element of num
iter = num.end() - 1;
Outrageous Ostrich