fix(判题): 题目缺测试数据时学生看到「编译错误」和一句英文「Test case not found」,以为是自己写错了
Deploy / deploy (push) Canceled after 0s

判题机的 err 只有 CompileError 是学生的错,别的(JudgeClientError 之类)原来也一律
记成编译错误,全库 337 条,最近一条在 2026-09。改记系统错误,学生那边说「判题出了
问题,不是你的代码写错了,告诉老师」,不再贴英文原文。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
xuyueandClaude Opus 5.5 committed 2026-09-30 10:44:09 +08:00
1 parent 96ce9725b2
commit e118d80057
2 files changed
+17 -4

No files matched your search

@@ -146,6 +146,10 @@ const msg = computed(() => {
"程序占的内存太多了。通常是列表、数组开得太大,或者在循环里不停地往里加东西、停不下来。\n\n"
}
// 判题机的原文是英文(多半是「Test case not found」,题目缺测试数据),学生看了只会以为自己错了
if (result === SubmissionStatus.system_error)
return "判题出了问题,不是你的代码写错了。告诉老师看一下这道题。"
if (result !== SubmissionStatus.ast_check_failed && props.submission.statisticInfo?.err_info) {
msg += stripJudgePath(props.submission.statisticInfo.err_info)
}