diff --git a/src/config/judge.ts b/src/config/judge.ts new file mode 100644 index 0000000..0727d6b --- /dev/null +++ b/src/config/judge.ts @@ -0,0 +1,30 @@ +export interface LanguageConfig { + id: string; + label: string; + fileName: string; + extension: string; + image: string; + tag: string; + workingDir: string; +} + +export const LanguageConfigs: Record = { + c: { + id: "c", + label: "C", + fileName: "main", + extension: "c", + image: "gcc", + tag: "latest", + workingDir: "/src", + }, + cpp: { + id: "cpp", + label: "C++", + fileName: "main", + extension: "cpp", + image: "gcc", + tag: "latest", + workingDir: "/src", + }, +};