From 397f79a5b13ca70885175f490f1ca1f78a2c2f49 Mon Sep 17 00:00:00 2001 From: virusdefender <1670873886@qq.com> Date: Fri, 19 Feb 2016 10:55:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=BC=96=E8=AF=91=E5=99=A8?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E6=98=BE=E7=A4=BA=E9=99=90=E5=88=B6=EF=BC=8C?= =?UTF-8?q?=E9=98=B2=E6=AD=A2=E4=BA=A7=E7=94=9F=E5=A4=A7=E9=87=8F=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- judge/language.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/judge/language.py b/judge/language.py index 20e4e2b2..6b8bfca0 100644 --- a/judge/language.py +++ b/judge/language.py @@ -6,7 +6,7 @@ languages = { "name": "c", "src_name": "main.c", "code": 1, - "compile_command": "/usr/bin/gcc -DONLINE_JUDGE -O2 -w -std=c99 {src_path} -lm -o {exe_path}/main", + "compile_command": "/usr/bin/gcc -DONLINE_JUDGE -O2 -w -fmax-errors=3 -std=c99 {src_path} -lm -o {exe_path}/main", "execute_command": "{exe_path}/main", "use_sandbox": True }, @@ -14,7 +14,7 @@ languages = { "name": "cpp", "src_name": "main.cpp", "code": 2, - "compile_command": "/usr/bin/g++ -DONLINE_JUDGE -O2 -w -std=c++11 {src_path} -lm -o {exe_path}/main", + "compile_command": "/usr/bin/g++ -DONLINE_JUDGE -O2 -w -fmax-errors=3 -std=c++11 {src_path} -lm -o {exe_path}/main", "execute_command": "{exe_path}/main", "use_sandbox": True },