online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
/****************************************************************************** Online C++ Compiler. Code, Compile, Run and Debug C++ program online. Write your code in this editor and press "Run" button to compile and execute it. *******************************************************************************/ #include <iostream> using namespace std; int main() { int re=-1,suma=0; int num[5]={1,1,1,1,1}; for (int p=0;p<5;p++) { num[p]=-1; } while (re<5&&num[re]%5!=0) { re++; cout<<"Introduce un numero entero"<<endl; cin>>num[re]; suma=suma+num[re]; cout<<"El resultado de su suma hasta el momento es "<<suma<<endl; } cout<<"El ciclo termino"<<endl; cout<<"La suma total es "<<suma<<endl; for(int re=0;re<5;re++) { cout<<"Numero en posicion "<<re<<" es "<<num[re]<<endl; } }

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