From e92b8a4e363528cbdfc920a8aa0df78a161c92e4 Mon Sep 17 00:00:00 2001 From: Baoshuo Date: Wed, 16 Mar 2022 20:10:44 +0800 Subject: [PATCH] feat(judger): upgrade to ubuntu:20.04 --- judger/Dockerfile | 2 +- judger/install.sh | 4 ++++ judger/uoj_judger/run/run_program_conf.h | 8 +++++++- web/app/controllers/faq.php | 12 ++++++------ 4 files changed, 18 insertions(+), 8 deletions(-) diff --git a/judger/Dockerfile b/judger/Dockerfile index 73fd52b..745c543 100644 --- a/judger/Dockerfile +++ b/judger/Dockerfile @@ -1,4 +1,4 @@ -FROM ubuntu:18.04 +FROM ubuntu:20.04 ARG CLONE_ADDFLAG diff --git a/judger/install.sh b/judger/install.sh index c6bd61d..ac45d54 100644 --- a/judger/install.sh +++ b/judger/install.sh @@ -8,6 +8,10 @@ getAptPackage(){ setJudgeConf(){ printf "\n\n==> Setting judger files\n" + #specify environment + cat > /etc/environment <
-

默认的测评环境是 Ubuntu Linux 18.04 LTS x64。

-

C的编译器是 gcc 7.4.0,编译命令:gcc code.c -o code -lm -O2 -DONLINE_JUDGE

-

C++的编译器是 g++ 7.4.0,编译命令:g++ code.cpp -o code -lm -O2 -DONLINE_JUDGE。如果选择C++11会在编译命令后面添加-std=c++11

-

Java8的JDK版本是 openjdk 1.8.0_222,编译命令:javac code.java

-

Java11的JDK版本是 openjdk 11.0.4,编译命令:javac code.java

+

默认的测评环境是 Ubuntu Linux 20.04 LTS x64。

+

C的编译器是 gcc 9.4.0,编译命令:gcc code.c -o code -lm -O2 -DONLINE_JUDGE

+

C++的编译器是 g++ 9.4.0,编译命令:g++ code.cpp -o code -lm -O2 -DONLINE_JUDGE。如果选择C++11会在编译命令后面添加-std=c++11

+

Java8的JDK版本是 openjdk 1.8.0_312,编译命令:javac code.java

+

Java11的JDK版本是 openjdk 11.0.14,编译命令:javac code.java

Pascal的编译器是 fpc 3.0.4,编译命令:fpc code.pas -O2

-

Python会先编译为优化过的字节码.pyo文件。支持的Python版本分别为Python 2.7和3.6。

+

Python会先编译为优化过的字节码.pyo文件。支持的Python版本分别为Python 2.7和3.8。