Simple Vector - UndefVar Error

Means exactly what it says: you hadn’t defined Candidate yet when you executed this code. It’s presumably supposed to be some kind of struct?

See Please read: make it easier to help you