'Screen turns black & can't interact with it, after C++ program runs a period of time
I'm running a C++ program that uses backtracking and writes solutions in a text file.
If the solution's set of elements is long enough, it will take enough time so that my browser will close and later my operating system turns black and I cannot interact with it anymore, requiring me to force-restart it. I've seen it once writing an incomplete line in the file, but I don't know if it's relevant.
What could be the issue? Is it because of memory? In the main function I have deleted whatever I've allocated.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|