diff --git a/judger/uoj_judger/run/compile.cpp b/judger/uoj_judger/run/compile.cpp index 817d721..35ef36b 100644 --- a/judger/uoj_judger/run/compile.cpp +++ b/judger/uoj_judger/run/compile.cpp @@ -452,12 +452,14 @@ int compile(const compile_config &conf) { std::string lang = upgraded_lang(conf.lang); - if (lang == "C++" || lang == "C++03") { + if (lang == "C++" || lang == "C++14") { + return compile_cpp(conf, "c++14"); + } else if (lang == "C++98") { + return compile_cpp(conf, "c++98"); + } else if (lang == "C++03") { return compile_cpp(conf, "c++03"); } else if (lang == "C++11") { return compile_cpp(conf, "c++11"); - } else if (lang == "C++14") { - return compile_cpp(conf, "c++14"); } else if (lang == "C++17") { return compile_cpp(conf, "c++17"); } else if (lang == "C++20") { diff --git a/web/app/libs/uoj-html-lib.php b/web/app/libs/uoj-html-lib.php index be86f4e..f470bd8 100644 --- a/web/app/libs/uoj-html-lib.php +++ b/web/app/libs/uoj-html-lib.php @@ -512,10 +512,13 @@ function echoSubmissionContent($submission, $requirement) { case 'C++': case 'C++11': case 'C++17': + case 'C++20': case 'C++98': + case 'C++03': $sh_class = 'sh_cpp'; break; case 'Python2': + case 'Python2.7': case 'Python3': $sh_class = 'sh_python'; break; diff --git a/web/app/libs/uoj-judger-lib.php b/web/app/libs/uoj-judger-lib.php index 3daf884..1a57d37 100644 --- a/web/app/libs/uoj-judger-lib.php +++ b/web/app/libs/uoj-judger-lib.php @@ -1,6 +1,6 @@