Main.cc: In function ‘int main()’: Main.cc:13:24: error: lvalue required as left operand of assignment if(x[j][i]==1&&h[j]=2){ ^ Main.cc:17:24: error: lvalue required as left operand of assignment if(x[j][i]==2&&h[j]=1){ ^