C++ quick reference

Runs in Zerethon IDE · C++ (GCC 14) Official C++ documentation ↗

C++20 (GCC 14) essentials: std::cout and types, control flow, functions and references, classes, the standard containers and algorithms, std::string, input and files, several source files — and how g++ builds and runs your project in Zerethon IDE.

Written for C++ (GCC 14). Examples that show an output were run in the Zerethon sandbox (C++ (GCC 14)) on 2026-10-20.

Basics

Data

Input and files

In Zerethon IDE

  • Running C++ in Zerethon IDE

    How Run compiles your project with g++, the flags it uses, the time limit, input and tests.

  • Common errors

    Compiler errors (“was not declared in this scope”, “no match for operator”), linker errors, and crashes.

  • Official documentation

    Where to read more: cppreference.com, the C++ Core Guidelines and the GCC manual.

References