Rating changes for last rounds are temporarily rolled back. They will be returned soon. ×

How do we run your solutions?

Revision en1, by Vladosiya, 2023-10-06 11:44:10

Hello Codeforces!

We have compiled a list of commands for you, which Codeforces uses to compile and run solutions in different languages and compilers.

Language/Tool Bitness Compilation/Build Command Run Command
GNU GCC C11 5.1.0 32 gcc -std=c11 -static -DONLINE_JUDGE -fno-asm -lm -s -Wl,--stack=268435456 -O2 %1 run binary file
GNU G++14 6.4.0 32 g++ -static -DONLINE_JUDGE -Wl,--stack=268435456 -O2 -std=c++14 %1 run binary file
GNU G++17 7.3.0 32 g++ -static -DONLINE_JUDGE -Wl,--stack=268435456 -O2 -std=c++17 %1 run binary file
GNU G++20 11.2.0 (64 bit, winlibs) 64 g++ -Wall -Wextra -Wconversion -static -DONLINE_JUDGE -Wl,--stack=268435456 -O2 -std=c++20 %1 run binary file
Microsoft Visual C++ 2017 32 cl /std:c++17 /W4 /F268435456 /EHsc /O2 /DONLINE_JUDGE %1 run binary file
GNU G++17 9.2.0 (64 bit, msys 2) 64 g++ -static -DONLINE_JUDGE -Wl,--stack=268435456 -O2 -std=c++17 %1 run binary file
C# 8, .NET Core 3.1 64 dotnet.exe build -c:release [+DefineConstants:TRACE;ONLINE_JUDGE] && editbin64.exe /stack:67108864 run binary file
C# 10, .NET SDK 6.0 64 dotnet.exe build -c:release [+DefineConstants:TRACE;ONLINE_JUDGE] && editbin64.exe /stack:67108864 run binary file
C# Mono 6.8 32 mcs /r:System.Numerics.dll -sdk:4.7 -platform:x86 -define:ONLINE_JUDGE -o+ %1 run binary file
D DMD32 v2.105.0 32 dmd -L/STACK:268435456 -version=ONLINE_JUDGE -O -release -noboundscheck -i %1 run binary file
Go 1.19.5 64 go build %1 run binary file
Haskell GHC 8.10.1 32 ghc -XSafe -rtsopts --make -O2 %1 run binary file +RTS -K256m -A8m -RTS
Java 11.0.6 32 javac %1 {JAVA11_32_HOME}\bin\java -XX:+UseSerialGC -XX:TieredStopAtLevel=1 -XX:NewRatio=5 -Xms8M -Xmx{MEMORY_LIMIT_MB}M -Xss64M -DONLINE_JUDGE=true -jar %1
Java 17 64bit 64 javac %1 {JAVA17_64_HOME}\bin\java -XX:+UseSerialGC -XX:TieredStopAtLevel=1 -XX:NewRatio=5 -Xms8M -Xmx{MEMORY_LIMIT_MB}M -Xss64M -DONLINE_JUDGE=true -jar %1
Java 21 64bit 64 javac %1 {JAVA21_64_HOME}\bin\java -XX:+UseSerialGC -XX:TieredStopAtLevel=1 -XX:NewRatio=5 -Xms8M -Xmx{MEMORY_LIMIT_MB}M -Xss64M -DONLINE_JUDGE=true -jar %1
Java 1.8.0_241 32 javac %1 {JAVA8_32_HOME}\bin\java -XX:+AggressiveOpts -XX:NewRatio=5 -Xms8M -Xmx{MEMORY_LIMIT_MB}M -Xss64M -DONLINE_JUDGE=true -jar %1
Kotlin 1.6.10 32 kotlinc %1 {JAVA11_32_HOME}\bin\java -XX:NewRatio=5 -Xms8M -Xmx{MEMORY_LIMIT_MB}M -Xss64M -DONLINE_JUDGE=true -jar %1
Kotlin 1.7.20 64 kotlinc %1 {JAVA17_64_HOME}\bin\java -XX:NewRatio=5 -Xms8M -Xmx{MEMORY_LIMIT_MB}M -Xss64M -DONLINE_JUDGE=true -jar %1
OCaml 4.02.1 32 ocamlopt nums.cmxa str.cmxa -pp camlp4o -unsafe %1 run binary file
Delphi 7 32 dcc32 -Q -$M1048576,67107839 -DONLINE_JUDGE -cc %1 run binary file
Free Pascal 3.0.2 32 fpc -n -O2 -Xs -Sgic -viwn -dONLINE_JUDGE -Cs67107839 -Mdelphi -XS %1 run binary file
PascalABC.NET 3.8.3 32 pabcnetcclear %1 mono %1
Perl 5.20.1 32 perl -c %1 perl %1
PHP 8.1.7 64 php -l %1 php -n -d ONLINE_JUDGE=true -d display_errors=Off -d error_reporting=0 -d memory_limit=1G %1
Python 2.7.18 32 NA python %1
Python 3.8.10 64 NA python %1
PyPy 2.7.13 (7.3.0) 32 NA pypy %1
PyPy 3.6.9 (7.3.0) 32 NA pypy %1
PyPy 3.9.10 (7.3.9, 64bit) 64 NA pypy %1
Ruby 3.0.0 32 ruby -c %1 ruby %1
Rust 1.72.0 (2021) 64 rustc --edition=2021 -O -C link-args=/STACK:268435456 --cfg ONLINE_JUDGE %1 run binary file
Scala 2.12.8 32 scalac %1 {JAVA8_32_HOME}\bin\java -XX:NewRatio=5 -Xms8M -Xmx{MEMORY_LIMIT_MB}M -Xss64M -DONLINE_JUDGE=true -jar %s
JavaScript V8 4.8.0 32 NA d8 %1
Node.js 12.16.3 32 node -c %1 node %1
Tags codeforces, compilers, compiler options, languages, compile, compilation errorr, langs, options, compiler, language, c++, cpp

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en14 English Vladosiya 2024-08-23 22:07:44 372
en13 English Vladosiya 2024-04-22 11:28:21 136
en12 English Vladosiya 2024-01-16 12:30:00 1055
en11 English Vladosiya 2024-01-05 20:45:06 56
en10 English Vladosiya 2023-12-30 19:55:22 15 Tiny change: ' to 3.12.1, Rust 1.72' -> ' to 3.12.1\n* 2023-12-30 Rust 1.72'
en9 English Vladosiya 2023-12-30 19:54:34 86
en8 English Vladosiya 2023-11-10 11:55:04 131
en7 English MikeMirzayanov 2023-10-06 18:46:00 130
en6 English Vladosiya 2023-10-06 18:43:20 54
en5 English Vladosiya 2023-10-06 11:55:55 0 (published)
en4 English MikeMirzayanov 2023-10-06 11:54:47 5 Tiny change: '.\n\n[cut]\n\nLangua' -> '.\n\n[cut]<br/>\n\nLangua'
en3 English MikeMirzayanov 2023-10-06 11:54:26 10
en2 English MikeMirzayanov 2023-10-06 11:50:25 218
en1 English Vladosiya 2023-10-06 11:44:10 10948 Initial revision (saved to drafts)