Problem binarycoins
User xuankhanh
Submission Time 2025-11-23 15:53:37
Score 0
Max Time N/A
Max Memory N/A

Compile Error

binarycoins.cpp:7:23: error: expected ‘,’ or ‘...’ before ‘amt’
7 | int solve(unsigned ll amt)
| ^~~
binarycoins.cpp: In function ‘int solve(unsigned int)’:
binarycoins.cpp:10:12: error: ‘amt’ was not declared in this scope
10 | while (amt>0){
| ^~~
binarycoins.cpp: In function ‘int main()’:
binarycoins.cpp:19:14: error: expected initializer before ‘amt’
19 | unsigned ll amt;
| ^~~
binarycoins.cpp:20:7: error: ‘amt’ was not declared in this scope
20 | cin>>amt;
| ^~~