# Simple Vector - UndefVar Error

**URL:** <https://discourse.julialang.org/t/simple-vector-undefvar-error/75419>\
**Category:** New to Julia\
**Tags:** question, vector, error-message\
**Created:** [January 29, 2022, 3:25pm UTC](https://discourse.julialang.org/t/simple-vector-undefvar-error/75419 "2022-01-29T15:25:50Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)\
**Post date:** [January 29, 2022, 4:15pm UTC](https://discourse.julialang.org/t/simple-vector-undefvar-error/75419/2 "2022-01-29T16:15:13Z")

</div>

> [@chandras002](#):
>
> Following code gives : **Candidate not defined" 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](https://discourse.julialang.org/t/please-read-make-it-easier-to-help-you/14757)

---

_[View the full topic](https://discourse.julialang.org/t/simple-vector-undefvar-error/75419)._
