组织程序设计竞赛 - HOWTO编译和执行 [英] Organizing Programming Contest - Howto compile and execute

查看:90
本文介绍了组织程序设计竞赛 - HOWTO编译和执行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我建立一个基于Web的界面,人们可以求解算法编程问题,请在简单的C code。我使用的王牌编辑器,人们可以在code型,当preSS运行按钮时,C code被发送到服务器,编译和输出送回来。

I am building a web based interface where people can type in simple C code for solving algorithmic programming questions. I am using Ace editor where people can type in code and when the press the run button, the C code is sent to server, compiled and output sent back.

如何在完成以安全的方式的第二部分。我的意思是给予C code文件,编译并执行它。我不能相信code那么,如何确保其没有恶意,不会伤害我的系统。还怎么征收内存和时间限制。

How do the accomplish the second part in a secure way. I mean given a C code file, compile it and execute it. I can't trust the code so how do i make sure its not malicious and will not harm my system. Also how to impose memory and time limits.

有没有已经存在的系统的开源系统中可用,我可以修改以满足我的需要?我没有找到我搜索什么。或者我应该如何进行接下来的一些指点?

Is there any already existing system open source system available which I can modify to suit my needs? I didn't find anything in my search. Or some pointers on how i should proceed next?

编辑:找到 http://cs.sru.edu/~contest/rocktest/,并试图了解他们的code,但仍在寻找更好的选择,preferably在PHP

edit: Found http://cs.sru.edu/~contest/rocktest/ and trying to understand their code but still looking for better options, preferably in php

推荐答案

我推荐的Ideaone API:的http:// ideone。 COM / API

I recommend the Ideaone API: http://ideone.com/api

这篇关于组织程序设计竞赛 - HOWTO编译和执行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆