Main.cc: In function 'int main()': Main.cc:11:8: error: lvalue required as left operand of assignment f*10+=num1%10; ^ Main.cc:19:1: error: expected '}' at end of input } ^