What's With The Error Message?

I ran my console program and everything compiled correctly and everything is exactly how I want it to be. But after about three or four seconds of running the program, I get an error message saying that my program (Project.exe) has encountered an error and has to close. Does anyone have any idea why this is happening and what I can do to stop it? Thanks in advance.