Problem coins
User duck
Submission Time 2025-12-10 16:22:14
Score 0
Max Time N/A
Max Memory N/A

Compile Error

arnavaz.cpp:3:4: error: structured binding declaration cannot have type ‘int’
3 | int[] coin_flips(int[] b, int c) {
| ^~
arnavaz.cpp:3:4: note: type must be cv-qualified ‘auto’ or reference to cv-qualified ‘auto’
arnavaz.cpp:3:4: error: empty structured binding declaration
arnavaz.cpp:3:7: error: expected initializer before ‘coin_flips’
3 | int[] coin_flips(int[] b, int c) {
| ^~~~~~~~~~
shahrnaz.cpp:2:21: error: expected ‘,’ or ‘...’ before ‘b’
2 | int find_coin(int[] b) {
| ^
shahrnaz.cpp: In function ‘int find_coin(int*)’:
shahrnaz.cpp:6:8: error: ‘b’ was not declared in this scope
6 | if (b[i] == 1 && i & (1 << j)) ans ^= (1 << j);
| ^