Problem binarycoins
User dumgod
Submission Time 2025-02-26 09:22:35
Score 0
Max Time N/A
Max Memory N/A

Compile Error

binarycoins.cpp: In function ‘int main()’:
binarycoins.cpp:18:4: error: invalid operands of types ‘long long unsigned int’ and ‘double’ to binary ‘operator%’
18 | n%=pow((double)2,i);
| ~^~~~~~~~~~~~~~~~~~
binarycoins.cpp:18:21: error: in evaluation of ‘operator%=(long long unsigned int, double)’
18 | n%=pow((double)2,i);
| ^