prize.cpp: In function 'int find_best(int)':
prize.cpp:21:23: error: cannot convert 'std::vector<int>' to '__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}' in assignment
res[i] = ask(i);
^
prize.cpp:22:21: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}[int]' for array subscript
if (res[i][0] + res[i][1] == 0)
^
prize.cpp:22:33: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}[int]' for array subscript
if (res[i][0] + res[i][1] == 0)
^
prize.cpp:24:34: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}[int]' for array subscript
maxi = max(maxi, res[i][0] + res[i][1]);
^
prize.cpp:24:46: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}[int]' for array subscript
maxi = max(maxi, res[i][0] + res[i][1]);
^
prize.cpp:31:27: error: cannot convert 'std::vector<int>' to '__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}' in assignment
res[i] = ask(i);
^
prize.cpp:32:21: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}[int]' for array subscript
if (res[i][0] + res[i][1] == 0)
^
prize.cpp:32:33: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}[int]' for array subscript
if (res[i][0] + res[i][1] == 0)
^
prize.cpp:34:21: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}[int]' for array subscript
if (res[i][0] + res[i][1] == maxi){
^
prize.cpp:34:33: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}[int]' for array subscript
if (res[i][0] + res[i][1] == maxi){
^
prize.cpp:39:39: error: cannot convert 'std::vector<int>' to '__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}' in assignment
res[mid] = ask(mid);
^
prize.cpp:40:31: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}[int]' for array subscript
if (res[mid][0] + res[mid][1] == 0)
^
prize.cpp:40:45: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}[int]' for array subscript
if (res[mid][0] + res[mid][1] == 0)
^
prize.cpp:42:31: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}[int]' for array subscript
if (res[mid][0] + res[mid][1] < maxi)
^
prize.cpp:42:45: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}[int]' for array subscript
if (res[mid][0] + res[mid][1] < maxi)
^
prize.cpp:45:33: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}[int]' for array subscript
if (res[i][1] - res[mid][1] > 0)
^
prize.cpp:45:47: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}[int]' for array subscript
if (res[i][1] - res[mid][1] > 0)
^
prize.cpp:52:35: error: cannot convert 'std::vector<int>' to '__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}' in assignment
res[beg] = ask(beg);
^
prize.cpp:53:27: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}[int]' for array subscript
if (res[beg][0] + res[beg][1] == 0)
^
prize.cpp:53:41: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}[int]' for array subscript
if (res[beg][0] + res[beg][1] == 0)
^