Main.cc: In function ‘int main()’: Main.cc:11:10: error: lvalue required as left operand of assignment if(n%2=1) a[cnt1++]=n; ^ Main.cc:13:2: error: expected ‘;’ before ‘}’ token } ^