diff --git a/src/languages/c.ts b/src/languages/c.ts index 1c38457..682b0cd 100644 --- a/src/languages/c.ts +++ b/src/languages/c.ts @@ -10,7 +10,7 @@ export const lang = { // write a shell script or some other stuff, // and put it to your sandbox. executable: "/usr/bin/gcc", - parameters: ["gcc", sourcePath, "-o", `${outputDirectory}/a.out`, "-O2", "-fdiagnostics-color=always", "-DONLINE_JUDGE"], + parameters: ["gcc", sourcePath, "-o", `${outputDirectory}/a.out`, "-O2", "-fdiagnostics-color=always", "-DONLINE_JUDGE", "-mx32"], time: 5000, memory: 1024 * 1024 * 1024, process: 10, diff --git a/src/languages/cpp.ts b/src/languages/cpp.ts index 606789d..b1b8020 100644 --- a/src/languages/cpp.ts +++ b/src/languages/cpp.ts @@ -10,7 +10,7 @@ export const lang = { // write a shell script or some other stuff, // and put it to your sandbox. executable: "/usr/bin/g++", - parameters: ["g++", sourcePath, "-o", `${outputDirectory}/a.out`, "-O2", "-fdiagnostics-color=always", "-DONLINE_JUDGE"], + parameters: ["g++", sourcePath, "-o", `${outputDirectory}/a.out`, "-O2", "-fdiagnostics-color=always", "-DONLINE_JUDGE", "-mx32"], time: 5000, memory: 1024 * 1024 * 1024, process: 10, diff --git a/src/languages/cpp11.ts b/src/languages/cpp11.ts index fd6b111..7959902 100644 --- a/src/languages/cpp11.ts +++ b/src/languages/cpp11.ts @@ -10,7 +10,7 @@ export const lang = { // write a shell script or some other stuff, // and put it to your sandbox. executable: "/usr/bin/g++", - parameters: ["g++", sourcePath, "-o", `${outputDirectory}/a.out`, "-std=c++11", "-O2", "-fdiagnostics-color=always", "-DONLINE_JUDGE"], + parameters: ["g++", sourcePath, "-o", `${outputDirectory}/a.out`, "-std=c++11", "-O2", "-fdiagnostics-color=always", "-DONLINE_JUDGE", "-mx32"], time: 5000, memory: 1024 * 1024 * 1024, process: 10,