coins.cpp:17:31: error: expected ',' or '...' before 'b'
17 | vector<int> coins_flips(int[] b, int c){
| ^
coins.cpp: In function 'std::vector<int> coins_flips(int*)':
coins.cpp:18:20: error: 'b' was not declared in this scope
18 | for(int i=0; i<b.size(); i++) if(b[i]) c^=i;
| ^
coins.cpp:18:44: error: 'c' was not declared in this scope
18 | for(int i=0; i<b.size(); i++) if(b[i]) c^=i;
| ^
coins.cpp:19:22: error: 'c' was not declared in this scope
19 | vector<int> ans={c};
| ^
coins.cpp:19:23: error: could not convert '{<expression error>}' from '<brace-enclosed initializer list>' to 'std::vector<int>'
19 | vector<int> ans={c};
| ^
| |
| <brace-enclosed initializer list>
coins.cpp: At global scope:
coins.cpp:23:21: error: expected ',' or '...' before 'b'
23 | int find_coin(int[] b){
| ^
coins.cpp: In function 'int find_coin(int*)':
coins.cpp:25:20: error: 'b' was not declared in this scope
25 | for(int i=0; i<b.size(); i++) if(b[i]) c^=i;
| ^