Thanks for using Compiler Explorer
C++
CMake
c++ source #1
Output
Compile to binary object
Link to binary
Execute the code
Intel asm syntax
Demangle identifiers
Filters
Unused labels
Library functions
Directives
Comments
Horizontal whitespace
Debug intrinsics
Compiler
clang (libc++) 15.0.7
clang (libc++) 16.0.6
clang (libstdc++) 15.0.7
clang (libstdc++) 16.0.6
gcc (libc++) 12.3.0
gcc (libc++) 13.2.0
gcc (libstdc++) 12.3.0
gcc (libstdc++) 13.2.0
Options
Source code
// Type your code here, or load an example. int square(int num) { return num * num; }
Source on GitHub
Wiki
Report an issue