online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <iostream> #define row 3 #define col 2 using namespace std; int main() { int matriz[row][col]; cout<<"Ingrese los valores de la matriz: "; for(int i=0; i<row; i++) for(int j=0; j<col; j++) cin>>matriz[i][j]; cout<<endl<<"--- La matriz es: ---"<<endl; for(int i=0; i<row; i++){ for(int j=0; j<col; j++) cout<<"["<<matriz[i][j]<<"] "; cout<<endl; } cout<<endl<<"--- Su transpuesta será: ---"<<endl; /*int aux=0; for(int i=0; i<row; i++) for(int j=0; j<col; j++){ aux = matriz[i][j]; matriz[i][j] = matriz[j][i]; matriz[j][i] = aux; }*/ for(int i=0; i<col; i++){ for(int j=0; j<row; j++) cout<<"["<<matriz[j][i]<<"] "; cout<<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