Problem | binarycoins |
---|---|
User | RendezvousAnonymous |
Submission Time | 2023-11-20 23:55:22 |
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:3:23: error: ‘::main’ must return ‘int’
3 | #define int long long int
| ^~~
binarycoins.cpp:8:1: note: in expansion of macro ‘int’
8 | int main()
| ^~~
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();
| ^~~~~