Is there a tool or website to compile a program on their server, without having to stay in the window, I want for example to write a program that counts from 1 to 10^10, and I might want to close the window and get back to it later, after it finished. like the compilation is done in the server.
Lol, if you are looking for a free online judge then its impossible, no one will run your program for more than a minute. Since its impossible to know whether a program will terminate in finite time so the execution is automatically stopped.
On a side note, thats not how you are supposed to write / check brute solutions XD
What you are looking for is called GNU Screen. You can start a session with
screen -S <session_name>
, then run some process in that session and minimize the session with Ctrl + a + d. The process will still be running in the background. When you want to see the progress, you can re-attatch the session withscreen -r <session_name>
. Seescreen -r
for more uses.