I am a student that wants to design an online judge system.

I have a problem: In order to keep the server safe, I must make the program not have rights to read or write any files
The program is what another user submits through the online judge system. It isn't the sever program itself.

The users of the online judge system submit their source code, then the server program compiles and runs it. So the server program must keep the server safe.

My platform is Windows, I use C++ for my programming.

Can anyone give me some suggestions?