I was coding on my 8gb ram laptop with sublime text and suddenly the laptop froze I pressed the power button to force restart .... today I was coding and I opended the task manager and "build and run" my code but, the ram usage started to increase untill the laptop froze again ...
so I will not use sublime text again
What (text editors)/(IDEs) are you using right now ? and why you're using it?
I use vs code .
Are you using any extensions or edits on it? how you get input/output? from external files or from terminal?
Use Competitive Companion extension in Google Chrome OR Mozilla Firefox and download the same extension in VS code. Usage is pretty simple and you can also submit your code directly from the extension in VS code. (this submit functionality works only on Mozilla)
This can be useful https://codeforces.com/blog/entry/65048?#comment-526915
It generally happens when you use while loop. There is nothing to limit usage in sublime text. So, to overcome this problem what i do is: Use terminating condition in while loops by taking some large number that won't affect your code.