online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <iostream> using namespace std; int main() { int nl1, nc1, nl2, nc2, nlp, ncp, i, j, k, s, a[10][10], b[10][10], p[10][10]; cin>>nl1>>nc1>>nc2; nl2=nc1; nlp=nl1; ncp=nc2; for(i=1; i<=nl1; i++) for(j=1; j<=nc1; j++) cin>>a[i][j]; cout<<"matricea a: "<<endl; for(i=1; i<=nl1; i++){ for(j=1; j<=nc1; j++) cout<<a[i][j]<<" "; cout<<endl; } cout<<endl; for(i=1; i<=nl2; i++) for(j=1; j<=nc2; j++) cin>>b[i][j]; cout<<"matricea b: "<<endl; for(i=1; i<=nl2; i++){ for(j=1; j<=nc2; j++) cout<<b[i][j]<<" "; cout<<endl; } cout<<endl; for(i=1; i<=nlp; i++) for(j=1; j<=ncp; j++){ p[i][j]=0; for(k=1; k<=nc1; k++) p[i][j]=p[i][j] + a[i][k]*b[k][j]; } cout<<"matricea produs: "<<endl; for(i=1; i<=nlp; i++){ for(j=1; j<=ncp; j++) cout<<p[i][j]<<" "; cout<<endl; } 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