I'm working out of a book call beginning C++ through game programming and on one of the exercises I'm suppose to remake a hangman program on the last chapter but this time using function prototypes to get the players guess and another one to see if the player is right. I wrote out the program and everything seem to be working just fine but when I try to run it a compile error shows up if anyone can help me fix it, it would be appreciated.
You declared a vector at Line 11. You did not add any elements to the container. Then, at Line 13, you are trying to access the first element from an empty vector.