Operator cannot be applied to operands. Operator overloading in c++.