From de24c3c08bb5b8598d9a25097586a42301fc89f0 Mon Sep 17 00:00:00 2001 From: Billchenchina Date: Wed, 3 Oct 2018 00:40:49 +0800 Subject: [PATCH] fix(uoj/1/app/libs): fix compile error when hack enabled Previous g++-4.8 version will cause compile error when hack enabled. --- uoj/1/app/libs/uoj-svn-lib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/uoj/1/app/libs/uoj-svn-lib.php b/uoj/1/app/libs/uoj-svn-lib.php index 03c98ef..7dee4f4 100644 --- a/uoj/1/app/libs/uoj-svn-lib.php +++ b/uoj/1/app/libs/uoj-svn-lib.php @@ -97,9 +97,9 @@ $cmd_prefix = "$uojMainJudgerWorkPath/run/run_program >{$this->prepare_dir}/run_compiler_result.txt --in=/dev/null --out=stderr --err={$this->prepare_dir}/compiler_result.txt --tl=10 --ml=512 --ol=64 --type=compiler --work-path={$work_path}"; if (isset($config['need_include_header']) && $config['need_include_header']) { - exec("$cmd_prefix --add-readable-raw=$include_path/ /usr/bin/g++-4.8 -o $name {$config['src']} -I$include_path -lm -O2 -DONLINE_JUDGE"); + exec("$cmd_prefix --add-readable-raw=$include_path/ /usr/bin/g++ -o $name {$config['src']} -I$include_path -lm -O2 -DONLINE_JUDGE"); } else { - exec("$cmd_prefix /usr/bin/g++-4.8 -o $name {$config['src']} -lm -O2 -DONLINE_JUDGE"); + exec("$cmd_prefix /usr/bin/g++ -o $name {$config['src']} -lm -O2 -DONLINE_JUDGE"); } $fp = fopen("{$this->prepare_dir}/run_compiler_result.txt", "r");