main_judger.cpp 534 B

12345678910111213141516171819202122
  1. #include "uoj_judger.h"
  2. int main(int argc, char **argv) {
  3. main_judger_init(argc, argv);
  4. RunResult res = run_program(
  5. (result_path + "/run_judger_result.txt").c_str(),
  6. "/dev/null",
  7. "/dev/null",
  8. "stderr",
  9. conf_run_limit("judger", 0, RL_JUDGER_DEFAULT),
  10. "--unsafe",
  11. conf_str("judger").c_str(),
  12. main_path.c_str(),
  13. work_path.c_str(),
  14. result_path.c_str(),
  15. data_path.c_str(),
  16. NULL);
  17. if (res.type != RS_AC) {
  18. end_judge_judgement_failed("Judgement Failed : Judger " + info_str(res));
  19. }
  20. return 0;
  21. }