mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-05 06:28:40 +00:00
96d4a3ecf7
Due to historical reasons, the code is in subfolder "1". With SVN removal, we place the code back and remove the annoying "1" folder.
23 lines
534 B
C++
23 lines
534 B
C++
#include "uoj_judger.h"
|
|
|
|
int main(int argc, char **argv) {
|
|
main_judger_init(argc, argv);
|
|
RunResult res = run_program(
|
|
(result_path + "/run_judger_result.txt").c_str(),
|
|
"/dev/null",
|
|
"/dev/null",
|
|
"stderr",
|
|
conf_run_limit("judger", 0, RL_JUDGER_DEFAULT),
|
|
"--unsafe",
|
|
conf_str("judger").c_str(),
|
|
main_path.c_str(),
|
|
work_path.c_str(),
|
|
result_path.c_str(),
|
|
data_path.c_str(),
|
|
NULL);
|
|
if (res.type != RS_AC) {
|
|
end_judge_judgement_failed("Judgement Failed : Judger " + info_str(res));
|
|
}
|
|
return 0;
|
|
}
|