- Bash(bash)
/bin/bash foo.sh
- C(c)
/usr/bin/gcc -Wall --std=c99 -o foo foo.c -lm
- C++(cc)
/usr/bin/g++ -Wall -std=c++14 -o foo foo.cc -lm -I/include
- C++98(cc.cc98)
/usr/bin/g++ -Wall -std=c++98 -o foo foo.cc -lm -I/include
- C++98(O2)(cc.cc98o2)
/usr/bin/g++ -Wall -std=c++98 -o foo foo.cc -lm -O2 -I/include
- C++11(cc.cc11)
/usr/bin/g++ -Wall -std=c++11 -o foo foo.cc -lm -I/include
- C++11(O2)(cc.cc11o2)
/usr/bin/g++ -Wall -std=c++11 -o foo foo.cc -lm -O2 -I/include
- C++14(cc.cc14)
/usr/bin/g++ -Wall -std=c++14 -o foo foo.cc -lm -I/include
- C++14(O2)(cc.cc14o2)
/usr/bin/g++ -Wall -std=c++14 -o foo foo.cc -lm -O2 -I/include
- C++17(cc.cc17)
/usr/bin/g++ -Wall -std=c++17 -o foo foo.cc -lm -I/include
- C++17(O2)(cc.cc17o2)
/usr/bin/g++ -Wall -std=c++17 -o foo foo.cc -lm -O2 -I/include
- C++20(cc.cc20)
/usr/bin/g++ -Wall -std=c++20 -o foo foo.cc -lm -I/include
- C++20(O2)(cc.cc20o2)
/usr/bin/g++ -Wall -std=c++20 -o foo foo.cc -lm -O2 -I/include
- Pascal(pas)
/usr/bin/fpc -O2 -o/w/foo foo.pas
- Java(java)
/usr/bin/bash -c "javac -d /w -encoding utf8 ./Main.java && jar cvf Main.jar *.class >/dev/null"
- Kotlin(kt)
echo "Invalid language selection"
- Kotlin/JVM(kt.jvm)
kotlinc -include-runtime -d foo.jar foo.kt
- Python(py)
/usr/bin/python -c "import py_compile; py_compile.compile('/w/foo.py', '/w/foo', doraise=True)"
- Python 2(py.py2)
/usr/bin/python -c "import py_compile; py_compile.compile('/w/foo.py', '/w/foo', doraise=True)"
- Python 3(py.py3)
/usr/bin/python3 -c "import py_compile; py_compile.compile('/w/foo.py', '/w/foo', doraise=True)"
- PyPy3(py.pypy3)
/bin/bash -c "/usr/bin/pypy3 -c \"import py_compile; py_compile.compile('/w/foo.py', '/w/foo', doraise=True)\" && mv foo.py foo"
- PHP(php)
/usr/bin/php foo.php
- Rust(rs)
/usr/bin/rustc -O -o /w/foo /w/foo.rs
- Haskell(hs)
/usr/bin/ghc -O -outputdir /tmp -o foo foo.hs
- NodeJS(js)
/usr/bin/node /w/foo.js
- Golang(go)
/usr/bin/go build -o foo foo.go
- Ruby(rb)
/usr/bin/ruby foo.rb
- C#(cs)
/usr/bin/mcs -optimize+ -out:/w/foo /w/foo.cs
- R(r)
/bin/sh -c "cat /dev/stdin >stdin && /usr/bin/Rscript --vanilla foo.r"
- BZOJ(bzoj)
/w/foo
- C++14 (O2)(bzoj.0)
/usr/bin/g++ -Wall -std=c++14 -o foo foo.cc -lm -O2 -I/include