Run C++ online — GCC, C++98 through C++26, real templates in a Firecracker microVM.
C++ is the language of high-performance systems: game engines, databases, browsers, trading systems, scientific computing. It is not a single language — every three years another version arrives, each one tightening the sharp edges.
ls-judge compiles C++ with GCC and gives you the full range: C++98 for legacy learning, C++11/14/17 for the modern mainstream, C++20 for concepts/ranges/coroutines, C++23 for the very latest standard, C++26 for the leading edge.
Every submission runs in a Firecracker microVM — real kernel isolation. Templates expand, STL is the real STL, undefined behaviour is undefined. Multi-file projects work: add headers and .cpp files via the file panel and they will be linked together.
The Tests panel feeds stdin and compares byte-normalized expected output. Verdicts (AC/WA/TLE/RE/MLE/CE) stream back per test case over WebSocket.
Clicking "Run now" opens the playground with this exact code and a matching test case pre-loaded — passes on first Run.
#include<iostream>
int main(){int n;std::cin>>n;std::cout<<n*2<<std::endl;return 0;}
21
42