Some weeks ago, I was coding a solution in c++, and by mistake I was adding an infinite amount of numbers to a vector. Suddenly, my computer got frozen, and it didn't respond to keyboard neither mouse events. I had to reset my computer, and it took a lot of time fixing the disk.
Did you had similar experiences during important contests?
Is there a compìler configuration to prevent this kind of scenarios?