Main.cc: In function 'int main()': Main.cc:22:26: error: 'i' was not declared in this scope if(k==l && a[l][k]!=a[i][q]){ ^ Main.cc:22:29: error: 'q' was not declared in this scope if(k==l && a[l][k]!=a[i][q]){ ^