[ LANGUAGE — GCC 14 ]
Run C++ online. No install.
Compile and run C++ online. Test algorithms and competitive-programming solutions fast.
Sample — copy into the compiler
#include <bits/stdc++.h>
using namespace std;
int main() {
string name;
cout << "Your name: ";
getline(cin, name);
cout << "Hello, " << name << "!\n";
return 0;
}1. Open the C++ runtime
Go to the compiler and select C++. Your code persists per language.
2. Paste and add input
Copy the sample or type your own. Fill stdin if the program reads input.
3. Run and share
Press Run in the editor, then copy the page URL to share your exact state.
C++ FAQ
Do I need to install C++ to use this?
No. The GCC 14 runtime runs in your browser via CodeLab's embedded editor. Open the compiler, pick C++, and press Run.
Is running C++ online free?
Yes. The CodeLab Playground is free with no account. Optional paid plans add privacy and larger limits — see the pricing page.
How do I handle input in C++?
Use the stdin panel inside the editor for piped input, then press Run. The sample below reads a name from stdin.