EDIT: I actually just got on the part where this is explained. So, nevermind this post. Haven’t figured out how to delete it yet.
Salutations, everyone!
During this section02 of the course I had to take a break, so I saved my filed and left. After I came back the compiler started giving me this “Debug Assertion Failed” message everythime I try a guess with less than 2 characters. After a while tinkering around I decided to copy and paste the whole project from the course files, but the error persists. This is making the Debugging process rather annoying considering I’m a total newb to this. I haven’t seen it happen in the course so I have no idea where to begin to look for a fix.
Thanks in advance! 
Hey Bernardo,
So, I am actually having the same issue you had. I went back to watch the lecture again to make sure I didn’t miss anything, I still cannot figure out what is going on. Am I missing something in the lecture that explains how to fix this issue? Thanks.
-Keith C.
Hi Keith,
I don’t kno whow I can really help you. I kept watching the lectures until Ben gets to a point where he explains that error and fizes it. I can’t remember precisely in wich lectur ethis happens. A while a go I took a break from the course so my memory is even worse to help you. Keep watching the lectures, you’re bound to find an explanation.
Sorry I couldn’t b eof any more help.
Cheers and good luck 
1 Like
Thanks for the response! I ended up rewriting the code to get past the issue and move on. I did save the original under a different file so that way I could revisit it at a later date. By the sounds of it I won’t have to wait long, again thank you for the response.
-Keith C.
Hey,
If any of you guys have problems with this it’s because in the first for loop you have the iterator be less than myHiddenWordLength, which is correct. Check your second loop however, it’s also < myHiddenWordlength (can you see the problem?). Basically when you enter a word thats shorter than your hidden word it’s still using the length of the hidden word to search through your guess.
So for example it tries to access Gues[3](if your hidden word is 4 characters) when your word is “and”, so your last index is Gues[2] (a =0 n =1 d =2). Your program will build but during runtime if you try to access the Guess[3] your program will go boom…
To fix it change the second for loop to be < Guess.length(); This way it can’t go out of bounds and try to access Guess[3].
Hope it helps.
1 Like