feat: add AST_CHECK_FAILED status and update result display

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-25 20:47:46 -06:00
parent 8e2fcceb8f
commit 18fc65f2ce
4 changed files with 17 additions and 3 deletions

View File

@@ -12,6 +12,7 @@ export enum SubmissionStatus {
judging = 7,
partial_accepted = 8,
submitting = 9,
ast_check_failed = 10,
}
export enum ContestStatus {
@@ -80,6 +81,10 @@ export const JUDGE_STATUS: {
name: "正在提交",
type: "info",
},
"10": {
name: "代码检查未通过",
type: "warning",
},
}
export const CONTEST_STATUS: {

View File

@@ -65,7 +65,7 @@ export type LANGUAGE =
export type LANGUAGE_SHOW_LABEL =
(typeof LANGUAGE_SHOW_VALUE)[keyof typeof LANGUAGE_SHOW_VALUE]
export type SUBMISSION_RESULT = -2 | -1 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9
export type SUBMISSION_RESULT = -2 | -1 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10
export type ProblemStatus = "passed" | "failed" | "not_test"
@@ -137,6 +137,7 @@ export interface Problem {
flowchart_data?: Record<string, any>
flowchart_hint?: string
show_flowchart?: boolean
ast_rules?: { [key: string]: { engine: string; target?: string; min?: number; max?: number; message: string }[] } | null
}
export type AdminProblem = Problem & AlterProblem