Main.cc: In function 'int main()':
Main.cc:10:16: warning: left operand of comma operator has no effect [-Wunused-value]
for(int j=1;j<=5,j++){
^
Main.cc:10:23: error: expected ';' before ')' token
for(int j=1;j<=5,j++){
^
Main.cc:4:17: warning: unused variable 'flag' [-Wunused-variable]
int a[5][5]={},flag=0,max=0,min,l,h;
^