Programming Languages

Bash

Bash v4.3.42

$ bash {source-name}.sh


C

GCC v5.3.1

$ gcc -static -O2 -lm -D ONLINE_JUDGE {source-name}.c


C++

GCC v5.3.1

$ g++ -static -lm -s -x c++ -O2 -std=c++98 -D ONLINE_JUDGE {source-name}.cpp


C++11

GCC v5.3.1

$ g++ -static -lm -s -x c++ -O2 -std=c++11 -D ONLINE_JUDGE {source-name}.cpp


C++14

GCC v5.3.1

$ g++ -static -lm -s -x c++ -O2 -std=c++14 -D ONLINE_JUDGE {source-name}.cpp


Go

Go v1.11.5

$ go build -o 6.out


Java 1.8

Java 1.8.0_03 (OpenJDK)

$ javac {source-name}.java


JavaScript

Node.js v6.17.1

$ node {source-name}.js


Kotlin

Kotlin v1.1.0

$ kotlinc {source-name}.kt

Toph’s support for this language is experimental. Please send your feedback here.


PHP

PHP v5.6.40

$ php {source-name}.php


PyPy

PyPy v7.1.0 (Python v2.7.13)

$ pypy {source-name}.py


PyPy 3

PyPy v7.1.0 (Python 3.6.1)

$ pypy3 {source-name}.py


Python

Python v2.7.16

$ python2 {source-name}.py


Python 3

Python v3.5.1

$ python3 {source-name}.py


Ruby

Ruby v2.2.10

$ ruby {source-name}.rb



Couldn't find your favorite programming language in the list above? Let us know which one.