online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include <iostream> int main() { int* ptr=new int[2]; try { ptr[0]=0; ptr[1]=0; std::cout<<"trying"<<'\n'; ptr[2]=0; ptr[3]=0; std::cout<<"o_O"<<'\n'; ptr[100000]=0; std::cout<<"x_x"<<'\n'; } catch(std::exception& e) { std::cout<<"caught1"<<'\n'; } catch(...) { std::cout<<"caught2"<<'\n'; } }
0000011111W12345678910110000011111W1234567891011


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