fix: correct Codeforces language version IDs and default to C++20 (#349)
## Problem `LANGUAGE_VERSIONS` mapped CF `c++17` to `89` (actually GNU G++20) and defaulted to `c++17`, which didn't match any CF entry. Helpdocs listed CF as having only `c++17`. ## Solution Fix CF version map to `c++17 → 54`, `c++20 → 89`, `c++23 → 91`, add `pypy3 → 70`. Change `DEFAULT_VERSIONS.cpp` to `c++20` (no behavioral change — `89` was already the submit default). Update helpdocs. Fix StyLua formatting in `race.lua`.
This commit is contained in:
parent
8398f3428e
commit
2776aaeb21
3 changed files with 15 additions and 15 deletions
|
|
@ -1039,18 +1039,18 @@ Submit the current solution to the online judge.
|
|||
SUBMIT LANGUAGE VERSIONS *cp-submit-language*
|
||||
|
||||
When submitting, cp.nvim selects a language version for the platform.
|
||||
The default is C++17 for cpp and Python 3 for python.
|
||||
The default is C++20 for cpp and Python 3 for python.
|
||||
|
||||
Configuring a version ~
|
||||
|
||||
Set {version} globally or per-platform:
|
||||
>lua
|
||||
languages = {
|
||||
cpp = { version = "c++20", ... },
|
||||
cpp = { version = "c++23", ... },
|
||||
},
|
||||
platforms = {
|
||||
atcoder = {
|
||||
overrides = { cpp = { version = "c++23" } },
|
||||
codeforces = {
|
||||
overrides = { cpp = { version = "c++17" } },
|
||||
},
|
||||
},
|
||||
<
|
||||
|
|
@ -1058,7 +1058,7 @@ Available versions per platform ~
|
|||
|
||||
Platform cpp python
|
||||
AtCoder c++23 python3
|
||||
Codeforces c++17 python3
|
||||
Codeforces c++17/20/23 python3, pypy3
|
||||
CSES c++17 python3
|
||||
Kattis c++17/20/23 python3
|
||||
USACO c++17/20/23 python3
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue