There are dozen of website where users can directly type code in different languages, for example https://ideone.com/. Is it enough to chroot the process for compiling and executing the software or specifics security measure should be taken?
Is there any open source project that I can check?