Problem binarycoins
User wtnetlegend
Submission Time 2025-03-18 17:40:03
Score 0
Max Time N/A
Max Memory N/A

Compile Error

binarycoins.cpp: In function ‘int main()’:
binarycoins.cpp:9:9: error: invalid operands of types ‘long long int’ and ‘__gnu_cxx::__promote_2<int, int, double, double>::__type’ {aka ‘double’} to binary ‘operator%’
9 | b = b % pow(2, i);
| ~ ^ ~~~~~~~~~
| | |
| | __gnu_cxx::__promote_2<int, int, double, double>::__type {aka double}
| long long int