Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>SOI CodeNew to Visual Studio Code? Get it now.
SOI Code

SOI Code

Swiss Olympiad in Informatics

soi.ch
|
1,790 installs
| (1) | Free
Easily get started solving SOI tasks in C++.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

SOI Code

With SOI Code, you can easily get started solving tasks in C++ for the Swiss Olympiad in Informatics.

After installing the extension, click the SOI logo which will appear on the left. You will be prompted to open a folder for storing your code in. It's best to create a new folder for this.

If VS Code prompts you, select "Yes, I trust the authors".

Now you can create tasks. Every task has a .cpp file, which contains your code, and a .soitask file, which contains samples. Click "Run solution on all samples" to compile your code, run it with the sample inputs, and compare the program output against the expected output.

Install a compiler

To be able to use SOI Code, you need a C++ compiler.

Windows: A compiler is already included with SOI Code.

macOS: Open a terminal. Enter clang --version. If you see a version number, a compiler is already installed. Otherwise, enter xcode-select --install.

Ubuntu, Debian: Open a terminal. Enter sudo apt install g++ gdb.

Fedora: Open a terminal. Enter sudo dnf install gcc-c++ libasan libubsan.

You can open a terminal in VS Code with Terminal > New Terminal.

Install the C/C++ extension

To enable debugging and IntelliSense features, install the C/C++ extension.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft