Embed the C compiler on a web page

I am developing a site for an online coding competition. Coding will be done in an editor that will be embedded in the web page, and it should also be able to compile the program online. Is there a compiler available that can be embedded in a web page? The server can be either a Linux server or a Windows server. If anyone has any ideas, please share.

+5
source share
1 answer

Well, you can always write a script that calls the installed compiler through the system () commands . Although you want to be very, very careful , because it can be very dangerous. For example, if you do not sanitize your input, then someone may enter commands that intentionally lead to a crash / damage to your system.

+6
source

All Articles