Problem | coins |
---|---|
User | penguin133 |
Submission Time | 2023-04-08 14:00:16 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
arnavaz.cpp:4:30: error: expected ‘,’ or ‘...’ before ‘b’
4 | vector<int> coin_flips(int[] b, int c){
| ^
arnavaz.cpp: In function ‘std::vector<int> coin_flips(int*)’:
arnavaz.cpp:8:12: error: ‘c’ was not declared in this scope
8 | int x = (c >> i & 1);
| ^
arnavaz.cpp:9:11: error: ‘b’ was not declared in this scope
9 | if(x != b[i])arr.push_back(i);
| ^
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:6:40: error: ‘b’ was not declared in this scope
6 | for(int i=0;i<6;i++)ans += (1 << i) * b[i];
| ^