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, Java, PHP, Ruby, Perl, C#, VB, Swift, Pascal, Fortran, Haskell, Objective-C, Assembly, HTML, CSS, JS, SQLite, Prolog. Code, Compile, Run and Debug online from anywhere in world. *******************************************************************************/ #include <iostream> int main() { std::cout << "PrzykEad przekrDcania licznika -1 (zapis binarny 8x1111B) do 0\n"; int a = 0b1111'1111'1111'1111'1111'1111'1111'1111; std::cout << "a =" << a << ", a + 1 = " << a + 1 <<"\n"; std::cout << "PrzykEad przekrDcania licznika z liczby ujemnej do dodaniej (zapis binarny 1(0)B)\n"; int b = 0b1000'0000'0000'0000'0000'0000'0000'0000; std::cout << "b =" << b << ", b - 1 = " << b - 1; return 0; } // -2147450879 // -2147483648

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text

                

                

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

  • {user}

      {timestamp}

    {content}

    #FunctionFile:Line
    VariableValue
    ExpressionValue