QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#798165#9809. The Grand ContestNailongGroupCompile Error//C++206.6kb2024-12-04 08:59:282024-12-04 08:59:31

Details

answer.code: In function ‘void solve()’:
answer.code:227:16: error: no match for ‘operator==’ (operand types are ‘pii’ {aka ‘std::pair<long long int, long long int>’} and ‘std::pair<int, long long int>’)
  227 |         if(ans == make_pair(0, inf)) {
      |            ~~~ ^~ ~~~~~~~~~~~~~~~~~
      |            |               |
      |            |               pair<int,[...]>
      |            pair<long long int,[...]>
In file included from /usr/include/c++/13/regex:68,
                 from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:181,
                 from answer.code:8:
/usr/include/c++/13/bits/regex.h:1274:5: note: candidate: ‘template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator==(const sub_match<_BiIter>&, __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&)’ (reversed)
 1274 |     operator==(const sub_match<_Bi_iter>& __lhs,
      |     ^~~~~~~~
/usr/include/c++/13/bits/regex.h:1274:5: note:   template argument deduction/substitution failed:
answer.code:227:35: note:   ‘std::pair<int, long long int>’ is not derived from ‘const std::__cxx11::sub_match<_BiIter>’
  227 |         if(ans == make_pair(0, inf)) {
      |                                   ^
/usr/include/c++/13/bits/regex.h:1441:5: note: candidate: ‘template<class _Bi_iter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)’ (reversed)
 1441 |     operator==(const sub_match<_Bi_iter>& __lhs,
      |     ^~~~~~~~
/usr/include/c++/13/bits/regex.h:1441:5: note:   template argument deduction/substitution failed:
answer.code:227:35: note:   ‘std::pair<int, long long int>’ is not derived from ‘const std::__cxx11::sub_match<_BiIter>’
  227 |         if(ans == make_pair(0, inf)) {
      |                                   ^
/usr/include/c++/13/bits/regex.h:1613:5: note: candidate: ‘template<class _Bi_iter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)’ (reversed)
 1613 |     operator==(const sub_match<_Bi_iter>& __lhs,
      |     ^~~~~~~~
/usr/include/c++/13/bits/regex.h:1613:5: note:   template argument deduction/substitution failed:
answer.code:227:35: note:   ‘std::pair<int, long long int>’ is not derived from ‘const std::__cxx11::sub_match<_BiIter>’
  227 |         if(ans == make_pair(0, inf)) {
      |                                   ^
In file included from /usr/include/c++/13/bits/stl_algobase.h:67,
                 from /usr/include/c++/13/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:51:
/usr/include/c++/13/bits/stl_iterator.h:534:5: note: candidate: ‘template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const reverse_iterator<_IteratorL>&, const reverse_iterator<_IteratorR>&) requires requires{{std::operator==::__x->base() == std::operator==::__y->base()} -> decltype(auto) [requires std::convertible_to<<placeholder>, bool>];}’ (reversed)
  534 |     operator==(const reverse_iterator<_IteratorL>& __x,
      |     ^~~~~~~~
/usr/include/c++/13/bits/stl_iterator.h:534:5: note:   template argument deduction/substitution failed:
answer.code:227:35: note:   ‘std::pair<int, long long int>’ is not derived from ‘const std::reverse_iterator<_IteratorL>’
  227 |         if(ans == make_pair(0, inf)) {
      |                                   ^
/usr/include/c++/13/bits/stl_iterator.h:1678:5: note: candidate: ‘template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&) requires requires{{std::operator==::__x->base() == std::operator==::__y->base()} -> decltype(auto) [requires std::convertible_to<<placeholder>, bool>];}’ (reversed)
 1678 |     operator==(const move_iterator<_IteratorL>& __x,
      |     ^~~~~~~~
/usr/include/c++/13/bits/stl_iterator.h:1678:5: note:   template argument deduction/substitution failed:
answer.code:227:35: note:   ‘std::pair<int, long long int>’ is not derived from ‘const std::move_iterator<_IteratorL>’
  227 |         if(ans == make_pair(0, inf)) {
      |                                   ^
In file included from /usr/include/c++/13/string:43,
                 from /usr/include/c++/13/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:52:
/usr/include/c++/13/bits/allocator.h:237:5: note: candidate: ‘template<class _T1, class _T2> constexpr bool std::operator==(const allocator<_CharT>&, const allocator<_T2>&)’ (reversed)
  237 |     operator==(const allocator<_T1>&, const allocator<_T2>&)
      |     ^~~~~~~~
/usr/include/c++/13/bits/allocator.h:237:5: note:   template argument deduction/substitution failed:
answer.code:227:35: note:   ‘std::pair<int, long long int>’ is not derived from ‘const std::allocator<_CharT>’
  227 |         if(ans == make_pair(0, inf)) {
      |                                   ^
In file included from /usr/include/c++/13/bits/basic_string.h:47,...