mirror of
https://github.com/massbug/judge4c.git
synced 2025-05-18 15:26:33 +00:00
feat(judge): update configuration with exit codes and result type
This commit is contained in:
parent
8fc113b348
commit
3d1ab62fe9
@ -1,3 +1,24 @@
|
|||||||
|
// Result type definitions
|
||||||
|
export enum ExitCode {
|
||||||
|
AC = 0, // Accepted
|
||||||
|
WA = 1, // Wrong Answer
|
||||||
|
TLE = 2, // Time Limit Exceeded
|
||||||
|
MLE = 3, // Memory Limit Exceeded
|
||||||
|
RE = 4, // Runtime Error
|
||||||
|
CE = 5, // Compilation Error
|
||||||
|
PE = 6, // Presentation Error
|
||||||
|
OLE = 7, // Output Limit Exceeded
|
||||||
|
SE = 8, // System Error
|
||||||
|
SV = 9 // Security Violation
|
||||||
|
}
|
||||||
|
|
||||||
|
export type JudgeResult = {
|
||||||
|
output: string;
|
||||||
|
exitCode: ExitCode;
|
||||||
|
executionTime?: number;
|
||||||
|
memoryUsage?: number;
|
||||||
|
};
|
||||||
|
|
||||||
export interface LanguageConfig {
|
export interface LanguageConfig {
|
||||||
id: string;
|
id: string;
|
||||||
label: string;
|
label: string;
|
||||||
|
Loading…
Reference in New Issue
Block a user