prize.cpp: In function 'int find_best(int)':
prize.cpp:62:29: error: no match for 'operator=' (operand types are 'std::array<int, 2>' and 'std::vector<int>')
62 | d[ b[i] ] = ask(b[i]);
| ^
In file included from /usr/include/c++/11/tuple:39,
from /usr/include/c++/11/functional:54,
from /usr/include/c++/11/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/11/algorithm:74,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
from prize.cpp:1:
/usr/include/c++/11/array:95:12: note: candidate: 'constexpr std::array<int, 2>& std::array<int, 2>::operator=(const std::array<int, 2>&)'
95 | struct array
| ^~~~~
/usr/include/c++/11/array:95:12: note: no known conversion for argument 1 from 'std::vector<int>' to 'const std::array<int, 2>&'
/usr/include/c++/11/array:95:12: note: candidate: 'constexpr std::array<int, 2>& std::array<int, 2>::operator=(std::array<int, 2>&&)'
/usr/include/c++/11/array:95:12: note: no known conversion for argument 1 from 'std::vector<int>' to 'std::array<int, 2>&&'
prize.cpp:78:45: error: no match for 'operator=' (operand types are 'std::array<int, 2>' and 'std::vector<int>')
78 | if (d[mid][0]==-1)d[mid]=ask(mid);
| ^
In file included from /usr/include/c++/11/tuple:39,
from /usr/include/c++/11/functional:54,
from /usr/include/c++/11/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/11/algorithm:74,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
from prize.cpp:1:
/usr/include/c++/11/array:95:12: note: candidate: 'constexpr std::array<int, 2>& std::array<int, 2>::operator=(const std::array<int, 2>&)'
95 | struct array
| ^~~~~
/usr/include/c++/11/array:95:12: note: no known conversion for argument 1 from 'std::vector<int>' to 'const std::array<int, 2>&'
/usr/include/c++/11/array:95:12: note: candidate: 'constexpr std::array<int, 2>& std::array<int, 2>::operator=(std::array<int, 2>&&)'
/usr/include/c++/11/array:95:12: note: no known conversion for argument 1 from 'std::vector<int>' to 'std::array<int, 2>&&'
prize.cpp:100:45: error: no match for 'operator=' (operand types are 'std::array<int, 2>' and 'std::vector<int>')
100 | if (d[mid][0]==-1)d[mid]=ask(mid);
| ^
In file included from /usr/include/c++/11/tuple:39,
from /usr/include/c++/11/functional:54,
from /usr/include/c++/11/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/11/algorithm:74,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
from prize.cpp:1:
/usr/include/c++/11/array:95:12: note: candidate: 'constexpr std::array<int, 2>& std::array<int, 2>::operator=(const std::array<int, 2>&)'
95 | struct array
| ^~~~~
/usr/include/c++/11/array:95:12: note: no known conversion for argument 1 from 'std::vector<int>' to 'const std::array<int, 2>&'
/usr/include/c++/11/array:95:12: note: candidate: 'constexpr std::array<int, 2>& std::array<int, 2>::operator=(std::array<int, 2>&&)'
/usr/include/c++/11/array:95:12: note: no known conversion for argument 1 from 'std::vector<int>' to 'std::array<int, 2>&&'