Problem | binarycoins |
---|---|
User | RendezvousAnonymous |
Submission Time | 2023-11-20 23:54:54 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
binarycoins.cpp:7:18: error: expected ‘]’ before ‘,’ token
7 | long long coins[1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536, 131072, 262144];
| ^
| ]
binarycoins.cpp:7:20: error: expected unqualified-id before numeric constant
7 | long long coins[1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536, 131072, 262144];
| ^
binarycoins.cpp: In function ‘int main()’:
binarycoins.cpp:24:33: error: ‘coins’ was not declared in this scope; did you mean ‘cos’?
24 | lower = lower_bound(coins.begin(), coins.end(), n) - coins.begin();
| ^~~~~
| cos