here's another noob who spent 3 hours trying to solve this problem!

fellow noobs, beware of the difference between VECTOR and VECTOR* (between any pair of data type and pointers to that data type for that matter)