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> #include<cstdlib> using namespace std; int main() { int x=2; double power1=1, power2=1; int k=0; for(int j=1;j<=100;j++) { power1=power1*x; k++; } k=k-1; cout << power1 << endl; cout << k << endl; for(int i=1;i<=10;i++) { power2=power2*power1; k++; } cout << power2 << endl; cout << k-- << endl; return 0; }

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