online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <iostream> using namespace std; int main() { int mc[10][10], nl, nc, i, j, l1, l2, aux; cout<<"numarul de linii? "; cin>>nl; cout<<"numarul de coloane? "; cin>>nc; for(i=1; i<=nl; i++) for(j=1; j<=nc; j++) mc[i][j]=i*10+j; cout<<endl; cout<<"matricea de control:"; cout<<endl<<endl; for(i=1; i<=nl; i++){ for(j=1; j<=nc; j++) cout<<mc[i][j]<<" "; cout<<endl; } cout<<endl; cout<<"l1 = ? "; cin>>l1; cout<<"l2 = ? "; cin>>l2; for(j=1; j<=nc; j++){ aux=mc[l1][j]; mc[l1][j]=mc[l2][j]; mc[l2][j]=aux; } cout<<endl; cout<<"matricea modificata:"; cout<<endl<<endl; for(i=1; i<=nl; i++){ for(j=1; j<=nc; j++) cout<<mc[i][j]<<" "; cout<<endl; } for(j=1; j<=nc; j++){ aux=mc[l1][j]; mc[l1][j]=mc[l2][j]; mc[l2][j]=aux; } 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