Your program is compiled and executed on the server against a real C++ toolchain, then the standard output and any errors are sent back to your browser. That means the standard library (STL containers, algorithms, iostream, etc.) is available.
Write a complete program with an int main() entry point, just like a normal .cpp file. Whatever main() prints to standard output (via std::cout or printf) shows up in the Output panel.
Execution is time-limited to keep the service responsive, and network access is restricted. Long-running, blocking, or excessively memory-hungry programs may be stopped and reported as timed out.
Yes. Click Share to copy a URL that encodes your current program, so anyone who opens the link sees the same code.
Chat opens an AI assistant embedded in the playground. It can explain C++ concepts, debug compile and runtime errors, and write code directly into the editor, then run it to confirm it works.