Problem coins
User maximushartanto
Submission Time 2025-12-10 15:43:25
Score 0
Max Time N/A
Max Memory N/A

Compile Error

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