This program is to calculate(first) the binary version of two variables and if the first digit of the first number is equal to the last digit of the second number we erase them from the numbers.. and so on until you don't erase anything else.... afterwards you put the remaining values back to decimal and display their sum.. The program is not that important as the error is ..
35:35: error: invalid operands of types ‘int’ and ‘__gnu_cxx::__promote_2<int, int>::__type {aka double}’ to binary ‘operator%’
Ifyou could help me solve this i would apreciate it.. thanks in advance!
My biggest problem is that a2 is not updating correctly... If you can help i would thank a lot...
PS i also got one message on the console like"Floating point exception"