mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 09:46:28 +08:00
judge: fix interactor load
This commit is contained in:
1 parent
9c0afa38e3
commit
6decc3c668
2 files changed
+4
-4
No files matched your search
@@ -40,7 +40,7 @@ function judgeCase(c) {
|
||||
status = STATUS.STATUS_RUNTIME_ERROR;
|
||||
if (code < 32) message = signals[code];
|
||||
else message = { message: 'Your program returned {0}.', params: [code] };
|
||||
} else [status, score, message] = resInteractor.files.stderr.split('\n');
|
||||
} else[status, score, message] = resInteractor.files.stderr.split('\n');
|
||||
ctxSubtask.score = Score[ctxSubtask.subtask.type](ctxSubtask.score, score);
|
||||
ctxSubtask.status = Math.max(ctxSubtask.status, status);
|
||||
ctx.total_time_usage_ms += time_usage_ms;
|
||||
@@ -95,8 +95,8 @@ export const judge = async (ctx) => {
|
||||
copyIn[parseFilename(file)] = { src: file };
|
||||
}
|
||||
return await compile(
|
||||
parseFilename(ctx.checker).split('.')[1],
|
||||
fs.readFileSync(ctx.checker).toString(),
|
||||
parseFilename(ctx.config.interactor).split('.')[1],
|
||||
fs.readFileSync(ctx.config.interactor).toString(),
|
||||
'interactor',
|
||||
copyIn,
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user