Main.cc: In function 'int main()': Main.cc:16:11: error: 'j' was not declared in this scope if(a[i][j]>max){ ^ Main.cc:19:12: error: 'j' was not declared in this scope if(a[i][j]