The problem I'm having is I can't figure out how to adress the iterator so I can access my vector's contents, on line 20. Couldn't figure out by reading everywhere or asking anyone.
1) Your definition (prototype) of hash must come before it is used; put it above main.
2) Iterators act like pointers: use iter->member to access elements (or (*iter).member)