You are not using the mathematical operator like = that requires lvalue correctly.