prize.cpp: In function 'std::pair<int, int> Ask(int)':
prize.cpp:10:47: error: cannot bind rvalue reference of type 'int&&' to lvalue of type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
10 | return mp[x] = make_pair<int, int>(q[0], q[1]);
| ^
In file included from /usr/include/c++/10/bits/stl_algobase.h:64,
from /usr/include/c++/10/bits/specfun.h:45,
from /usr/include/c++/10/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:41,
from prize.cpp:1:
/usr/include/c++/10/bits/stl_pair.h:567:21: note: initializing argument 1 of 'constexpr std::pair<typename std::__strip_reference_wrapper<typename std::decay<_Tp>::type>::__type, typename std::__strip_reference_wrapper<typename std::decay<_Tp2>::type>::__type> std::make_pair(_T1&&, _T2&&) [with _T1 = int; _T2 = int; typename std::__strip_reference_wrapper<typename std::decay<_Tp2>::type>::__type = int; typename std::__strip_reference_wrapper<typename std::decay<_Tp>::type>::__type = int]'
567 | make_pair(_T1&& __x, _T2&& __y)
| ~~~~~~^~~
prize.cpp: In function 'int find_best(int)':
prize.cpp:26:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
26 | for(int i = 0; i < cur.size(); i++){
| ~~^~~~~~~~~~~~
prize.cpp:21:14: warning: control reaches end of non-void function [-Wreturn-type]
21 | vector<int> cur;
| ^~~