Actually, when I reopened the program just now, I didn't get that error anymore, but now it's saying "The program '[6720] main.exe' has exited with code 0 (0x0)." after some reading violations. Does that have anything to do with the error I posted above?
Not enough information to spot the problem or to compile it myself.
"reading violations" implies you're attempting to access memory that doesn't belong to your program. This is usually caused by a bad pointer or an attempt to make an out of bounds reference to an array.