diff --git a/www/judge/languages/c11.py b/www/judge/languages/c11.py index 252b77c..037d1ae 100644 --- a/www/judge/languages/c11.py +++ b/www/judge/languages/c11.py @@ -13,7 +13,7 @@ def system(cmd): def setup(sandbox, source_code): sandbox.write_file(source_code, "submission.c") - compiled = sandbox.run("gcc -O3 submission.c -pedantic-errors -lm -std=c11", stdout=".stdout", + compiled = sandbox.run("gcc -O3 submission.c -pedantic-errors -lm -std=c11 -DNDEBUG", stdout=".stdout", stderr=".stderr", time_limit=10, memory_limit=COMPILE_MEMORY_LIMIT) if compiled.split()[0] != "OK": diff --git a/www/judge/languages/cpp.py b/www/judge/languages/cpp.py index 0817103..ab13dba 100644 --- a/www/judge/languages/cpp.py +++ b/www/judge/languages/cpp.py @@ -13,7 +13,7 @@ def system(cmd): def setup(sandbox, source_code): sandbox.write_file(source_code, "submission.cpp") - compiled = sandbox.run("g++ -O3 submission.cpp -pedantic-errors --std=c++0x", stdout=".stdout", + compiled = sandbox.run("g++ -O3 submission.cpp -pedantic-errors --std=c++0x -DNDEBUG", stdout=".stdout", stderr=".stderr", time_limit=10, memory_limit=COMPILE_MEMORY_LIMIT) if compiled.split()[0] != "OK":