mirror of
https://github.com/QingdaoU/OnlineJudge.git
synced 2024-09-21 08:23:20 +00:00
增加编译器错误显示限制,防止产生大量错误信息
This commit is contained in:
parent
4f41de1c0a
commit
397f79a5b1
@ -6,7 +6,7 @@ languages = {
|
|||||||
"name": "c",
|
"name": "c",
|
||||||
"src_name": "main.c",
|
"src_name": "main.c",
|
||||||
"code": 1,
|
"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",
|
"execute_command": "{exe_path}/main",
|
||||||
"use_sandbox": True
|
"use_sandbox": True
|
||||||
},
|
},
|
||||||
@ -14,7 +14,7 @@ languages = {
|
|||||||
"name": "cpp",
|
"name": "cpp",
|
||||||
"src_name": "main.cpp",
|
"src_name": "main.cpp",
|
||||||
"code": 2,
|
"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",
|
"execute_command": "{exe_path}/main",
|
||||||
"use_sandbox": True
|
"use_sandbox": True
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user