Codeforces Round 1133 (Div. 1, Div. 2) is coming soon! Register here. ×

Infinite loop problem
Difference between en1 and en2, changed 8 character(s)
I am using the sublime editor for running my code on my machine. And I am using File I/O like this:↵
↵
↵
↵
_#ifndef ONLINE_JUDGE_↵
_freopen("/home/zeddie/Documents/input.txt","r",stdin);_↵
_freopen("/home/zeddie/Documents/output.txt","w",stdout);_↵
_freopen("/home/zeddie/Documents/error.txt","w",stderr);_↵
_#endif_↵
__↵
↵
↵
**#### PROBLEM**: Sometimes when I do some error in my program that leads to an infinite loop, then my programs produce infinite output and programs keeps on running and my system starts lagging. Only option I have now is to reboot my machine.↵
↵
Can anyone help me with this? 

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English zeddie 2020-05-23 13:17:09 8
en1 English zeddie 2020-05-23 13:16:38 616 Initial revision (published)