Problem binarycoins
User mingging1748
Submission Time 2024-04-14 15:09:50
Score 0
Max Time N/A
Max Memory N/A

Compile Error

binarycoins.cpp: In function ‘int main()’:
binarycoins.cpp:10:13: error: invalid type argument of unary ‘*’ (have ‘int’)
10 | while (2**i < b) {
| ^
binarycoins.cpp:11:17: error: invalid type argument of unary ‘*’ (have ‘int’)
11 | if (2**(i + 1) > b) {
| ^
binarycoins.cpp:13:13: error: invalid type argument of unary ‘*’ (have ‘int’)
13 | b -= 2**i;
| ^