Problem binarycoins
User caleb
Submission Time 2024-05-23 18:32:59
Score 0
Max Time N/A
Max Memory N/A

Compile Error

binarycoins.cpp: In function β€˜int main()’:
binarycoins.cpp:12:84: error: expected primary-expression before β€˜)’ token
12 | for (int i=log2(B); i>=0; i--) {x = 1LL << i; if (B>= x) {sum += 1; B -= 1LL << i;);}}
| ^