---
metadata:
  - name: generator
    content: Diplodoc Platform v5.28.0
alternate:
  - https://contest.yandex.com/docs/en/compilers.md
  - https://contest.yandex.com/docs/ru/compilers.md
---
> **Documentation Index:** Fetch the complete configuration index at https://contest.yandex.com/docs/ru/llms.txt

{% include [title](_includes/compilers/page-text-2dbdc58f6603.md) %}

{% list tabs accordion %}

- Bash 5.2.21

  {% include [title](_includes/compilers/label-compilation-81125c483746.md) %}
  
  ```bash
  dos2unix source && bash -n source
  ```
  
  {% include [title](_includes/compilers/label-run-cd0a2d14b94a.md) %}
  
  ```bash
  bash source
  ```

- C# (.NET 8.0)

  {% include [title](_includes/compilers/label-compilation-81125c483746.md) %}
  
  ```bash
  dotnet csc.dll @libraries source -out binary.exe
  ```
  
  {% include [title](_includes/compilers/label-run-cd0a2d14b94a.md) %}
  
  ```bash
  dotnet exec --runtimeconfig runtimeconfig.json binary.exe
  ```

- C++20 (Clang 18.1.8)

  {% include [title](_includes/compilers/label-compilation-81125c483746.md) %}
  
  ```bash
  clang++ -lm -O2 -std=c++20 -x c++ source -o binary
  ```
  
  {% include [title](_includes/compilers/label-run-cd0a2d14b94a.md) %}
  
  ```bash
  ./binary
  ```

- C++20 (GCC 14.1)

  {% include [title](_includes/compilers/label-compilation-81125c483746.md) %}
  
  ```bash
  g++ -O2 -lm -fno-stack-limit -std=c++20 -x c++ source -o binary
  ```
  
  {% include [title](_includes/compilers/label-run-cd0a2d14b94a.md) %}
  
  ```bash
  ./binary
  ```

- C++23 (Clang 18.1.8)

  {% include [title](_includes/compilers/label-compilation-81125c483746.md) %}
  
  ```bash
  clang++ -lm -O2 -std=c++23 -x c++ source -o binary
  ```
  
  {% include [title](_includes/compilers/label-run-cd0a2d14b94a.md) %}
  
  ```bash
  ./binary
  ```

- C++23 (GCC 14.1)

  {% include [title](_includes/compilers/label-compilation-81125c483746.md) %}
  
  ```bash
  g++ -O2 -lm -fno-stack-limit -std=c++23 -x c++ source -o binary
  ```
  
  {% include [title](_includes/compilers/label-run-cd0a2d14b94a.md) %}
  
  ```bash
  ./binary
  ```

- C17 (GCC 14.1)

  {% include [title](_includes/compilers/label-compilation-81125c483746.md) %}
  
  ```bash
  gcc -lm -O2 -fno-stack-limit -std=c17 -x c source -o binary
  ```
  
  {% include [title](_includes/compilers/label-run-cd0a2d14b94a.md) %}
  
  ```bash
  ./binary
  ```

- C23 (GCC 14.1)

  {% include [title](_includes/compilers/label-compilation-81125c483746.md) %}
  
  ```bash
  gcc -lm -O2 -fno-stack-limit -std=c23 -x c source -o binary
  ```
  
  {% include [title](_includes/compilers/label-run-cd0a2d14b94a.md) %}
  
  ```bash
  ./binary
  ```

- Dart 3.7.2

  {% include [title](_includes/compilers/label-compilation-81125c483746.md) %}
  
  ```bash
  dart compile exe source -o binary
  ```
  
  {% include [title](_includes/compilers/label-run-cd0a2d14b94a.md) %}
  
  ```bash
  ./binary
  ```

- Delphi (FPC 3.2.2)

  {% include [title](_includes/compilers/label-compilation-81125c483746.md) %}
  
  ```bash
  /usr/bin/env fpc -O2 -Sd source.exe -oprogram
  ```
  
  {% include [title](_includes/compilers/label-run-cd0a2d14b94a.md) %}
  
  ```bash
  ./program
  ```

- Free Basic 1.04

  {% include [title](_includes/compilers/label-compilation-81125c483746.md) %}
  
  ```bash
  fbc -O 2 -x program -lang qb source.bas
  ```
  
  {% include [title](_includes/compilers/label-run-cd0a2d14b94a.md) %}
  
  ```bash
  ./program
  ```

- Free Pascal 3.2.2

  {% include [title](_includes/compilers/label-compilation-81125c483746.md) %}
  
  ```bash
  fpc -O2 source.pas -oprogram
  ```
  
  {% include [title](_includes/compilers/label-run-cd0a2d14b94a.md) %}
  
  ```bash
  ./program
  ```

- GDC 14.2.0

  {% include [title](_includes/compilers/label-compilation-81125c483746.md) %}
  
  ```bash
  gdc -O3 -Wall -march=native -frelease -fno-debug source.d -o program;;
  ```
  
  {% include [title](_includes/compilers/label-run-cd0a2d14b94a.md) %}
  
  ```bash
  ./program
  ```

- GNU GCC 13.1 C++20 + JSON

  {% include [title](_includes/compilers/label-compilation-81125c483746.md) %}
  
  ```bash
  g++ -O2 -fno-stack-limit -std=c++20 -x c++ source.cpp -o program -lm -lcurl -lpthread -lcrypto -lssl -lcpprest
  ```
  
  {% include [title](_includes/compilers/label-run-cd0a2d14b94a.md) %}
  
  ```bash
  ./program
  ```

- Go 1.24.2

  {% include [title](_includes/compilers/label-compilation-81125c483746.md) %}
  
  ```bash
  go build -o binary -compiler gc source.go
  ```
  
  {% include [title](_includes/compilers/label-run-cd0a2d14b94a.md) %}
  
  ```bash
  ./binary
  ```

- Haskell 7.10.2

  {% include [title](_includes/compilers/label-compilation-81125c483746.md) %}
  
  ```bash
  ghc --make -O -tmpdir . source.hs -o program
  ```
  
  {% include [title](_includes/compilers/label-run-cd0a2d14b94a.md) %}
  
  ```bash
  ./program
  ```

- Java 17 (Temurin JDK)

  {% include [title](_includes/compilers/label-compilation-81125c483746.md) %}
  
  ```bash
  javac Solution.java
  jar cvfe program.jar Solution *.class
  ```
  
  {% include [title](_includes/compilers/label-run-cd0a2d14b94a.md) %}
  
  ```bash
  java -Dfile.encoding=UTF8 -Xmx2048M -Xss1024M -jar program.jar
  ```

- Java 17 (Temurin JDK) + JSON

  {% include [title](_includes/compilers/label-compilation-81125c483746.md) %}
  
  ```bash
  javac Solution.class; jar -cvfe binary.jar Solution *.class
  ```
  
  {% include [title](_includes/compilers/label-run-cd0a2d14b94a.md) %}
  
  ```bash
  java -Dfile.encoding=UTF8 -Xmx1024M -Xms1024M -Xss1024M -jar binary.jar
  ```

- Java 21 (Temurin JDK)

  {% include [title](_includes/compilers/label-compilation-81125c483746.md) %}
  
  ```bash
  javac Solution.java
  jar cvfe program.jar Solution *.class
  ```
  
  {% include [title](_includes/compilers/label-run-cd0a2d14b94a.md) %}
  
  ```bash
  java -Dfile.encoding=UTF8 -Xmx2048M -Xss1024M -jar program.jar
  ```

- Java 23 (Temurin JDK)

  {% include [title](_includes/compilers/label-compilation-81125c483746.md) %}
  
  ```bash
  javac Solution.java
  jar cvfe program.jar Solution *.class
  ```
  
  {% include [title](_includes/compilers/label-run-cd0a2d14b94a.md) %}
  
  ```bash
  java -Dfile.encoding=UTF8 -Xmx2048M -Xss1024M -jar program.jar
  ```

- Kotlin 1.9.21 (JRE 21)

  {% include [title](_includes/compilers/label-compilation-81125c483746.md) %}
  
  ```bash
  kotlinc solution.kt -include-runtime -d solution.jar
  ```
  
  {% include [title](_includes/compilers/label-run-cd0a2d14b94a.md) %}
  
  ```bash
  ${JAVA_HOME}/bin/java ${JAVA_PARAMS} -jar solution.jar
  ```

- Kotlin 2.0.10 (JRE 21)

  {% include [title](_includes/compilers/label-compilation-81125c483746.md) %}
  
  ```bash
  kotlinc solution.kt -include-runtime -d solution.jar
  ```
  
  {% include [title](_includes/compilers/label-run-cd0a2d14b94a.md) %}
  
  ```bash
  java -Dfile.encoding=UTF8 -Xmx2048M -Xss1024M -jar solution.jar
  ```

- Kotlin 2.1.20 (JRE 21)

  {% include [title](_includes/compilers/label-compilation-81125c483746.md) %}
  
  ```bash
  kotlinc solution.kt -include-runtime -d solution.jar
  ```
  
  {% include [title](_includes/compilers/label-run-cd0a2d14b94a.md) %}
  
  ```bash
  java -Dfile.encoding=UTF8 -Xmx2048M -Xss1024M -jar solution.jar
  ```

- kumir 2.1.0-rc9

  {% include [title](_includes/compilers/label-compilation-81125c483746.md) %}
  
  ```bash
  kumir2-llvmc -e=utf8 -o=program source.kum
  ```
  
  {% include [title](_includes/compilers/label-run-cd0a2d14b94a.md) %}
  
  ```bash
  ./program
  ```

- Lua 5.4

  {% include [title](_includes/compilers/label-run-cd0a2d14b94a.md) %}
  
  ```bash
  lua source.lua
  ```

- Node.js 22.14.0

  {% include [title](_includes/compilers/label-compilation-81125c483746.md) %}
  
  ```bash
  node -c source.js
  ```
  
  {% include [title](_includes/compilers/label-run-cd0a2d14b94a.md) %}
  
  ```bash
  node source.js
  ```

- OCaml 4.02.3

  {% include [title](_includes/compilers/label-compilation-81125c483746.md) %}
  
  ```bash
  ocamlopt nums.cmxa str.cmxa -unsafe -o program source.ml
  ```
  
  {% include [title](_includes/compilers/label-run-cd0a2d14b94a.md) %}
  
  ```bash
  ./program
  ```

- PascalABC.NET 3.11.0

  {% include [title](_includes/compilers/label-compilation-81125c483746.md) %}
  
  ```bash
  mono pabcnetcclear.exe source.pas
  ```
  
  {% include [title](_includes/compilers/label-run-cd0a2d14b94a.md) %}
  
  ```bash
  mono program.exe
  ```

- Perl 5.14

  {% include [title](_includes/compilers/label-compilation-81125c483746.md) %}
  
  ```bash
  perl -c source.pl
  ```
  
  {% include [title](_includes/compilers/label-run-cd0a2d14b94a.md) %}
  
  ```bash
  perl source.pl
  ```

- PHP 8.1

  {% include [title](_includes/compilers/label-compilation-81125c483746.md) %}
  
  ```bash
  php8.1 -l source.php
  ```
  
  {% include [title](_includes/compilers/label-run-cd0a2d14b94a.md) %}
  
  ```bash
  php8.1 source.php
  ```

- Python 3.11 (PyPy 7.3.19)

  {% include [title](_includes/compilers/label-compilation-81125c483746.md) %}
  
  ```bash
  pypy3 -c 'import py_compile; py_compile.copmile("source.py", doraise=True)'
  ```
  
  {% include [title](_includes/compilers/label-run-cd0a2d14b94a.md) %}
  
  ```bash
  pypy3 source.py
  ```

- Python 3.13.2

  {% include [title](_includes/compilers/label-compilation-81125c483746.md) %}
  
  ```bash
  python3 -c 'import py_compile; py_compile.compile("source.py", doraise=True)'
  ```
  
  {% include [title](_includes/compilers/label-run-cd0a2d14b94a.md) %}
  
  ```bash
  python3 source.py
  ```

- R 3.6.3 + Modules

  {% include [title](_includes/compilers/label-run-cd0a2d14b94a.md) %}
  
  ```bash
  Rscript program.r
  ```

- Ruby 2.2.3

  {% include [title](_includes/compilers/label-compilation-81125c483746.md) %}
  
  ```bash
  ruby2.2 -c source.rb
  ```
  
  {% include [title](_includes/compilers/label-run-cd0a2d14b94a.md) %}
  
  ```bash
  ruby2.2 source.rb
  ```

- Rust 1.80.1

  {% include [title](_includes/compilers/label-compilation-81125c483746.md) %}
  
  ```bash
  rustc --edition=2021 -O -o program source.rs
  ```
  
  {% include [title](_includes/compilers/label-run-cd0a2d14b94a.md) %}
  
  ```bash
  ./program
  ```

- Scala 2.13.4

  {% include [title](_includes/compilers/label-compilation-81125c483746.md) %}
  
  ```bash
  scalac source -d solution.jar
  ```
  
  {% include [title](_includes/compilers/label-run-cd0a2d14b94a.md) %}
  
  ```bash
  java -Dfile.encoding=UTF8 -Xmx2048M -Xss1024M -jar solution.jar
  ```

- Swift 6.1

  {% include [title](_includes/compilers/label-compilation-81125c483746.md) %}
  
  ```bash
  swiftc -O -module-cache-path . -o binary source.swift
  ```
  
  {% include [title](_includes/compilers/label-run-cd0a2d14b94a.md) %}
  
  ```bash
  ./binary
  ```

- TypeScript 5.4.5

  {% include [title](_includes/compilers/label-compilation-81125c483746.md) %}
  
  ```bash
  tsc source.ts
  ```
  
  {% include [title](_includes/compilers/label-run-cd0a2d14b94a.md) %}
  
  ```bash
  node transpiled.js
  ```

- TypeScript 5.8.3

  {% include [title](_includes/compilers/label-compilation-81125c483746.md) %}
  
  ```bash
  tsc source.ts
  ```
  
  {% include [title](_includes/compilers/label-run-cd0a2d14b94a.md) %}
  
  ```bash
  node compiled.js
  ```

{% endlist %}
