The judge system use the following commands internally to compile and run the submitted programs. These commands are also available on your workstation.
C | compilegcc(no “run” command) |
C++ | compileg++(no “run” command) |
Java | compilejava / runjava |
Python 2 | compilepython2 / runpython2 |
Python 3 | compilepython3 / runpython3 |
Kotlin | compilekotlin / runkotlin |
For your reference, below are how your programs will be compiled and run. ”$@” is substituted with your source file(s); ”$DEST” is the name of the binary (which is “./a.out” by default) and is chosen arbitrarily by the system.
Note:
2: DOMjudge will detect the main class automatically; you do not have to name it Main. See the DOMjudge team manual for details.
3: Python’s “Compile” commands only verify the syntax. *.pycfiles will notbe used in the real run.