online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
/*#include <iostream> using namespace std; int main() { int i, j, suma, A[filas][filas]; for (i=0; i<filas; i++) for(j=0; j<filas; j++) cin>>A[i][j]; for (i=0; i<filas; i++){ for(j=0; j<filas; j++){ if(i==j){ suma += A[i][j]; cout<<A[i][j]<<" "; } } } cout<<" promedio "<< return 0; }*/ #include <iostream> #define filas 2 using namespace std; int main() { int i, j, suma=0, A[filas][filas]; cout<<"Ingresar elementos de Matriz de dimension "<<filas<<": " << endl; for(i=0; i<filas; i++) for(j=0; j<filas; j++) cin>>A[i][j]; cout<<endl<<"Los elementos de la diagonal son: "; for(i=0; i<filas; i++) for(j=0; j<filas; j++) if(i == j) { suma += A[i][j]; cout<<A[i][j]<<", "; } cout<<endl<<" promedio "<<(float)suma/filas; 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