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, m[10][10], v1[10], v2[10], mnl, mxc; cin>>nl>>nc; for(i=1; i<=nl; i++) for(j=1; j<=nc; j++) cin>>m[i][j]; for(i=1; i<=nl; i++){ for(j=1; j<=nc; j++) cout<<m[i][j]<<" "; cout<<endl; } cout<<endl; for(i=1; i<=nl; i++){ mnl=m[i][1]; for(j=2; j<=nc; j++){ if(m[i][j]<mnl){ mnl=m[i][j]; } } v1[i]=mnl; } for(j=1; j<=nc; j++){ mxc=m[1][j]; for(i=2; i<=nl; i++){ if(m[i][j]>mxc){ mxc=m[i][j]; } } v2[j]=mxc; } cout<<"puncte sa : "<<endl; for(i=1; i<=nl; i++) for(j=1; j<=nc; j++) if(m[i][j]==v1[i] && m[i][j]==v2[j]) cout<<m[i][j]<<" pe linia "<<i<<" si coloana "<<j<<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