prog.cpp: In function ‘bool numberPalindrome(int, int)’:
prog.cpp:28:25: error: invalid operands of types ‘int’ and ‘__gnu_cxx::__promote_2<int, int, double, double>::__type’ {aka ‘double’} to binary ‘operator%’
int rightBit = number % std::pow(toBase, i + 1);
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
prog.cpp:33:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
prog.cpp: In function ‘int main()’:
prog.cpp:39:7: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &number);
~~~~~^~~~~~~~~~~~~~~