Skip to content

Commit

Permalink
executors: add C++23 support
Browse files Browse the repository at this point in the history
  • Loading branch information
Xyene authored Jun 2, 2024
1 parent 9672196 commit 7614074
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions dmoj/executors/CPP23.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
from dmoj.executors.c_like_executor import CPPExecutor, GCCMixin


class Executor(GCCMixin, CPPExecutor):
command = 'g++23'
command_paths = ['g++-13', 'g++']
std = 'c++23'
test_program = """
#include <iostream>
#if __cplusplus >= 202302L
int main() {
auto input = std::cin.rdbuf();
std::cout << input;
return 0;
}
#endif
"""

0 comments on commit 7614074

Please sign in to comment.