online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <iostream> using namespace std; int main() { int nl, nc, i, j, a[50][50], b[50][50], s[50][50]; cin>>nl>>nc; for(i=1; i<=nl; i++) for(j=1; j<=nc; j++) cin>>a[i][j]; for(i=1; i<=nl; i++) for(j=1; j<=nc; j++) cin>>b[i][j]; for(i=1; i<=nl; i++) for(j=1; j<=nc; j++) s[i][j] = a[i][j] + b[i][j]; cout<<"matricea a : "<<endl<<endl; for(i=1; i<=nl; i++){ for(j=1; j<=nc; j++) cout<<a[i][j]<<" "; cout<<endl; } cout<<endl; cout<<"matricea b : "<<endl<<endl; for(i=1; i<=nl; i++){ for(j=1; j<=nc; j++) cout<<b[i][j]<<" "; cout<<endl; } cout<<endl; cout<<"matricea suma : "<<endl<<endl; for(i=1; i<=nl; i++){ for(j=1; j<=nc; j++) cout<<s[i][j]<<" "; cout<<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