Write C++, press Run and see what your program prints, or what the compiler says about it. Clang compiles it right in your browser.
main.cpp
#include <iostream>
#include <string>
#include <vector>
int main() {
// Write your C++ code here and click Run.
std::vector<std::string> names = {"Ada", "Linus", "Grace"};
for (const std::string& name : names) {
std::cout << "Hello, " << name << "!\n";
}
std::cout << "Names: " << names.size() << "\n";
}
Press Run to see what your program prints.
Your code runs in your own browser, not on a server: Python, Clang, Lua and SQLite are compiled to WebAssembly and load the first time you run something. That's why there's no account, no queue and no limit on how often you press Run.
What you write is saved in this browser, so it's still here when you come back. Reset brings back the example.
Share copies a link with your code inside it. Nothing is uploaded: whoever opens the link gets the code in their own editor, and it runs only when they press Run.
Ctrl+Enter (⌘+Enter on a Mac) runs the code from the keyboard.
A program may run for 10 seconds and print up to 100,000 characters. After that it's stopped, so a loop that never ends can't freeze the page.