0_0_14298682_23586.cpp: In function 'bool judge(int)':
0_0_14298682_23586.cpp:70:35: error: no matching function for call to 'make_pair(int&, int)'
for(it1=s1.lower_bound(MP(L,-1)) ; it1!=s1.end() && it1->first < i ; it1++){
^
0_0_14298682_23586.cpp:70:35: note: candidate is:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:70:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
from 0_0_14298682_23586.cpp:7:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:276:5: note: template<class _T1, class _T2> constexpr std::pair<typename std::__decay_and_strip<_Tp>::__type, typename std::__decay_and_strip<_T2>::__type> std::make_pair(_T1&&, _T2&&)
make_pair(_T1&& __x, _T2&& __y)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:276:5: note: template argument deduction/substitution failed:
0_0_14298682_23586.cpp:70:35: note: cannot convert 'L' (type 'int') to type 'int&&'
for(it1=s1.lower_bound(MP(L,-1)) ; it1!=s1.end() && it1->first < i ; it1++){
^
0_0_14298682_23586.cpp:72:35: error: no matching function for call to 'make_pair(int&, int)'
it2=s2.lower_bound(MP(R,-1));
^
0_0_14298682_23586.cpp:72:35: note: candidate is:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:70:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
from 0_0_14298682_23586.cpp:7:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:276:5: note: template<class _T1, class _T2> constexpr std::pair<typename std::__decay_and_strip<_Tp>::__type, typename std::__decay_and_strip<_T2>::__type> std::make_pair(_T1&&, _T2&&)
make_pair(_T1&& __x, _T2&& __y)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:276:5: note: template argument deduction/substitution failed:
0_0_14298682_23586.cpp:72:35: note: cannot convert 'R' (type 'int') to type 'int&&'
it2=s2.lower_bound(MP(R,-1));
^
0_0_14298682_23586.cpp: In function 'void solve()':
0_0_14298682_23586.cpp:84:50: error: no matching function for call to 'make_pair(int, int&)'
if(i+p[i]-1==n-1) s2.insert(MP(i-p[i]+1,i));
^
0_0_14298682_23586.cpp:84:50: note: candidate is:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:70:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
from 0_0_14298682_23586.cpp:7:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:276:5: note: template<class _T1, class _T2> constexpr std::pair<typename std::__decay_and_strip<_Tp>::__type, typename std::__decay_and_strip<_T2>::__type> std::make_pair(_T1&&, _T2&&)
make_pair(_T1&& __x, _T2&& __y)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:276:5: note: template argument deduction/substitution failed:
0_0_14298682_23586.cpp:84:50: note: cannot convert 'i' (type 'int') to type 'int&&'
if(i+p[i]-1==n-1) s2.insert(MP(i-p[i]+1,i));
^
0_0_14298682_23586.cpp:88:48: error: no matching function for call to 'make_pair(int, int&)'
if(i-p[i]+1==1) s1.insert(MP(i+p[i]-1,i));
^
0_0_14298682_23586.cpp:88:48: note: candidate is:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:70:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
from 0_0_14298682_23586.cpp:7:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:276:5: note: template<class _T1, class _T2> constexpr std::pair<typename std::__decay_and_strip<_Tp>::__type, typename std::__decay_and_strip<_T2>::__type> std::make_pair(_T1&&, _T2&&)
make_pair(_T1&& __x, _T2&& __y)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:276:5: note: template argument deduction/substitution failed:
0_0_14298682_23586.cpp:88:48: note: cannot convert 'i' (type 'int') to type 'int&&'
if(i-p[i]+1==1) s1.insert(MP(i+p[i]-1,i));
^
0_0_14298682_23586.cpp:89:49: error: no matching function for call to 'make_pair(int, int&)'
if(i+p[i]-1==n-1) s2.erase(MP(i-p[i]+1,i));
^
0_0_14298682_23586.cpp:89:49: note: candidate is:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:70:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
from 0_0_14298682_23586.cpp:7:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:276:5: note: template<class _T1, class _T2> constexpr std::pair<typename std::__decay_and_strip<_Tp>::__type, typename std::__decay_and_strip<_T2>::__type> std::make_pair(_T1&&, _T2&&)
make_pair(_T1&& __x, _T2&& __y)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:276:5: note: template argument deduction/substitution failed:
0_0_14298682_23586.cpp:89:49: note: cannot convert 'i' (type 'int') to type 'int&&'
if(i+p[i]-1==n-1) s2.erase(MP(i-p[i]+1,i));
^
|