mirror of
https://github.com/massbug/judge4c.git
synced 2025-05-18 07:16:34 +00:00
chore(types): delete src/types/judge.ts file
This commit is contained in:
parent
c32704af27
commit
2d4abc5141
@ -1,35 +0,0 @@
|
||||
import { EditorLanguageMetadata } from "./editor-language";
|
||||
|
||||
// Result type definitions
|
||||
export enum ExitCode {
|
||||
SE = 0, // System Error
|
||||
CS = 1, // Compilation Success
|
||||
CE = 2, // Compilation Error
|
||||
TLE = 3, // Time Limit Exceeded
|
||||
MLE = 4, // Memory Limit Exceeded
|
||||
RE = 5, // Runtime Error
|
||||
AC = 6, // Accepted
|
||||
WA = 7, // Wrong Answer
|
||||
}
|
||||
|
||||
export type JudgeResultMetadata = {
|
||||
output: string;
|
||||
exitCode: ExitCode;
|
||||
executionTime?: number;
|
||||
memoryUsage?: number;
|
||||
};
|
||||
|
||||
export type JudgeMetadata = {
|
||||
editorLanguageMetadata: EditorLanguageMetadata;
|
||||
dockerMetadata: DockerMetadata;
|
||||
};
|
||||
|
||||
export type DockerMetadata = {
|
||||
image: string;
|
||||
tag: string;
|
||||
workingDir: string;
|
||||
timeLimit: number;
|
||||
memoryLimit: number;
|
||||
compileOutputLimit: number;
|
||||
runOutputLimit: number;
|
||||
}
|
Loading…
Reference in New Issue
Block a user