mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-11-10 16:38:48 +00:00
22 lines
520 B (Stored with Git LFS)
C++
22 lines
520 B (Stored with Git LFS)
C++
#include "uoj_judger.h"
|
|
|
|
int main(int argc, char **argv) {
|
|
judger_init(argc, argv);
|
|
|
|
report_judge_status_f("Compiling");
|
|
RunCompilerResult c_ret = compile("answer");
|
|
if (!c_ret.succeeded) {
|
|
end_judge_compile_error(c_ret);
|
|
}
|
|
|
|
report_judge_status_f("Judging Test");
|
|
TestPointConfig tpc;
|
|
tpc.input_file_name = "/dev/null";
|
|
tpc.output_file_name = work_path + "/output.txt";
|
|
tpc.answer_file_name = work_path + "/answer.code";
|
|
PointInfo po = test_point("answer", 1, tpc);
|
|
add_point_info(po);
|
|
|
|
end_judge_ok();
|
|
}
|