Fixed FLAGS typo and changed compiler:
Edited loop in 'vector_subm' that moves memory up, because 'i + 1' was looping into 'v->len'