Problem coins
User YH
Submission Time 2025-12-10 15:44:50
Score 0
Max Time N/A
Max Memory N/A

Compile Error

arnavaz.cpp: In function ‘std::vector<int> coin_flips(std::vector<int>, int)’:
arnavaz.cpp:6:5: error: ‘flip’ was not declared in this scope; did you mean ‘flips’?
6 | flip[0] = 0;
| ^~~~
| flips
arnavaz.cpp:9:23: error: invalid types ‘__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}[int]’ for array subscript
9 | if (b[i][j] == 0) flips[0] ^= (8*i+j);
| ^
shahrnaz.cpp: In function ‘int find_coin(std::vector<int>)’:
shahrnaz.cpp:7:23: error: invalid types ‘__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}[int]’ for array subscript
7 | if (b[i][j] == 0) res ^= (8*i+j);
| ^