A browser-based compiler for C, C++, Python, and Java.
- Go to the website
- Select a language.
- Write or paste code in the editor.
- Add stdin input (optional).
- Run the program.
- View stdout/stderr output from the compiler runtime.
Code is executed in a controlled environment with fixed resource limits that can be changed via the UI.
- Limited CPU time (terminates after 60 seconds)
- Limited memory usage (you can use upto 128MB)
This is just the code for the frontend of the online compiler, the actual code execution is handled by the ContainerizationAPI that i had made earlier, you can go to that repo to see that code, it essentially just uses unix tools to containerize your code and run it in a sandbox environment