/run-oi-code

Shell for compiling OI codes for https://github.com/formulahendry/vscode-code-runner.

Primary LanguageShellMIT LicenseMIT

Run OI Code

Shell for compiling OI codes for vscode-code-runner.

Screen Shot:

Screen Shot

Dependencies

  1. CppCheck

    sudo apt install cppcheck
  2. Clang++ / G++

    sudo apt install build-essential llvm clang

Full steps:

sudo apt install cppcheck build-essential llvm clang

Deployment

  1. Open vscode settings(Json)

  2. Put cpp-compact.sh in

    "code-runner.executorMap": {
        "cpp": <HERE>,
    }

Usage

Press Ctrl + Alt + N to run code.

Tweaks

  1. Compiler

    If you don't want LLVM Clang++ as your compiler, you can change all clang++ into g++.

  2. Compile options

    You can change compile options as well as CppCheck options as you like.