From 93fa51df4de2d849ef5c6119f663facf5a06c2b4 Mon Sep 17 00:00:00 2001 From: pk4wt2yal <1330800687@qq.com> Date: Mon, 25 Nov 2024 12:19:01 +0800 Subject: [PATCH] Delete 'src/my-online-judge-master/MYOJ/compile_server/compile_run.hpp' --- .../MYOJ/compile_server/compile_run.hpp | 207 ------------------ 1 file changed, 207 deletions(-) delete mode 100644 src/my-online-judge-master/MYOJ/compile_server/compile_run.hpp diff --git a/src/my-online-judge-master/MYOJ/compile_server/compile_run.hpp b/src/my-online-judge-master/MYOJ/compile_server/compile_run.hpp deleted file mode 100644 index 77e1971..0000000 --- a/src/my-online-judge-master/MYOJ/compile_server/compile_run.hpp +++ /dev/null @@ -1,207 +0,0 @@ -#pragma once - -#include -#include - -#include "./comm/util.hpp" -#include "compile.hpp" -#include "Runner.hpp" - -namespace ns_compile_run -{ - // 协调程序的编译和运行 - - enum STATUS - { - EmptyCodeError = -2, - CompileFailError - }; - - class Compile_Run - { - public: - Compile_Run() - { - } - ~Compile_Run() - { - } - - // in_json中包含: - // 1、code:用户提交的代码 - // 2、input:用户给自己提交的代码所做的输入,不做处理 - // 3、cpu_limit:CPU运行时间限制 - // 4、mem_limit:内存限制,即空间限制 - - static void start(const std::string &in_json, std::string *out_json) - { - // 程序状态 - int status = 0; - - // 1.把输入的in_json反序列化 - Json::Value in_value; - Json::Reader reader; - - reader.parse(in_json, in_value); - - std::string code = in_value["code"].asString(); - // std::cout << "输出code代码: " << std::endl; - // std::cout<