That's what probably causes the memory overflow.
And btw, you haven't handled the case where the word doesn't exist in the dictionary (you should output 'eh' in that case).
Doesn't seem to have a problem in VS. I hope you meant "main.cpp" for the name of the file where the main() function is. I compiled it using VC++ 8.0 with default compiler settings. However, the program crashes during runtime. You should change the main file to something like the following ...