Main.cc: In function 'int main()':
Main.cc:12:22: error: expected ']' before ';' token
cin>>arr[i][j;]
^
Main.cc:12:23: error: expected primary-expression before ']' token
cin>>arr[i][j;]
^
Main.cc:31:13: error: break statement not within loop or switch
if(max==min)break;
^
Main.cc:8:33: warning: unused variable 'flag' [-Wunused-variable]
int i=0,j=0,n=0,m=0,max=0,min=0,flag=0;
^