Problem coins
User nmluan
Submission Time 2025-07-25 09:34:21
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:3:21: error: expected ‘,’ or ‘...’ before ‘b’
3 | int find_coin(int[] b){
| ^
shahrnaz.cpp: In function ‘int find_coin(int*)’:
shahrnaz.cpp:6:13: error: ‘b’ was not declared in this scope
6 | if (b[i]){
| ^