online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
/****************************************************************************** Welcome to GDB Online. GDB online is an online compiler and debugger tool for C, C++, Python, PHP, Ruby, C#, VB, Perl, Swift, Prolog, Javascript, Pascal, HTML, CSS, JS Code, Compile, Run and Debug online from anywhere in world. Gabriel Staples 6 Oct. 2020 *******************************************************************************/ #include <iostream> #include <cstdio> namespace my_first_scope { namespace my_second_scope { } // namespace my_second_scope } // namespace my_first_scope int main() { printf("Hello World\n"); bool my_var = my_first_scope::my_second_scope::true; std::cout << my_var << std::endl; return 0; } /* Sample Output: main.cpp: In function ‘int main()’: main.cpp:27:52: error: expected unqualified-id before ‘true’ bool my_var = my_first_scope::my_second_scope::true; ^~~~ */

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text
×

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue