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?
Auto comment: topic has been updated by zeddie (previous revision, new revision, compare).
Go to
Preferences
->Key Bindings
, then addon the right. Then you'll be able to press ctrl+alt+b to cancel your build.
It worked, Thank you so much! :-)
You can create a new build system in sublime. You can refer to this build system that allows you to set a custom timeout.
Github Repo
This is what I have been exactly looking for. Thanks a ton!!!
I'm getting this error by using this build system "ERROR: Invalid syntax. Default option is not allowed more than '1' time(s). Type "TIMEOUT /?" for usage." Any idea about it how to resolve?
Which OS are you using ? sj.shivam25