Problem | binarycoins |
---|---|
User | Henries |
Submission Time | 2024-10-12 22:30:51 |
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:8:4: error: ‘x’ was not declared in this scope
8 | x = n / pow(2,power);
| ^
binarycoins.cpp:9:4: error: ‘rem’ was not declared in this scope; did you mean ‘drem’?
9 | rem = n % pow(2,power);
| ^~~
| drem
binarycoins.cpp:9:12: 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 | rem = n % pow(2,power);
| ~ ^ ~~~~~~~~~~~~
| | |
| | __gnu_cxx::__promote_2<int, long long int, double, double>::__type {aka double}
| long long int