I use sublime text to code in c++ for windows and i don't know how to fix infinite loop because my system gets freeze whenever it encounter infinite loop and only way to fix is to restart the pc which creates lots of problem during the contest time.
I came through this blog of preda2or but unable to implement it. I wanted to know if there's any additional approach to fix this problem and anyone who has implement above blog. Thanks in advance:) PS:I use input.txt and output.txt as input and output file.