In function 'void f(int)': 25:57: error: no match for 'operator<<' in 'std::cout << f((int)fmod()(n, pow()(2.0e+0, k)))'
compiler wrote:
In function 'void f(int)', line 25, column 57: There is no way to resolve this expression `'std::cout << f((int)fmod()(n, pow()(2.0e+0, k)))'`. Aka I don't know what to print as a return value for a function returning void. It is not defined in my knowledge base.
The error message is quite explanatory. Also the only "return" portion of the code I see is the return statement in the main function, and the problem is definitely not there