From a8175af78f4137b03da4d4ece8e45b9fd4aadee3 Mon Sep 17 00:00:00 2001 From: shaohuihuang Date: Tue, 27 Nov 2018 20:48:06 +0800 Subject: [PATCH] change gcc compiler settings --- judge/languages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/judge/languages.py b/judge/languages.py index b8d9d36a..f9f3e74a 100644 --- a/judge/languages.py +++ b/judge/languages.py @@ -24,7 +24,7 @@ int main() { "max_cpu_time": 3000, "max_real_time": 10000, "max_memory": 256 * 1024 * 1024, - "compile_command": "/usr/bin/gcc -DONLINE_JUDGE -O2 -w -fmax-errors=3 -std=c11 {src_path} -lm -o {exe_path}", + "compile_command": "/usr/bin/gcc -DONLINE_JUDGE -O2 -Wall -Werror -Wno-unused-variable -Wno-deprecated-declarations -Wno-unused-result -Wno-maybe-uninitialized -Wno-implicit-function-declaration -fmax-errors=3 -std=c99 {src_path} -lm -o {exe_path}", }, "run": { "command": "{exe_path}",