Hey everyone !
I would like to know if there is any command which can be written during compilation of C++ program(not in my solution code) that would stop the program from running indefinitely ?
I am asking this because when I compile my programs in sublime, and if it has some way of running indefinitely, then my linux os would keep on eating up my ram/space.
Note: if u compile using terminal , then u can press 'ctrl+c' to halt manually.
My question : Is there any extra command to automatically stop program after some time ? By using some compile arguments ?
Thanks in advance:)








