Problem | binarycoins |
---|---|
User | Henries |
Submission Time | 2024-10-12 22:31:08 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
binarycoins.cpp: In function ‘void solve(long long int)’:
binarycoins.cpp:9:22: error: invalid operands of types ‘long long int’ and ‘__gnu_cxx::__promote_2<int, long long int, double, double>::__type’ {aka ‘double’} to binary ‘operator%’
9 | long long rem = n % pow(2,power);
| ~ ^ ~~~~~~~~~~~~
| | |
| | __gnu_cxx::__promote_2<int, long long int, double, double>::__type {aka double}
| long long int