Problem coins
User JhoCyber
Submission Time 2025-12-10 16:00:18
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:30: error: ‘b’ was not declared in this scope
6 | for(int i=0;i<64;i++) if(b[i]==0) return i;
| ^