QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#328384#833. Cells BlockingBellaKiraCompile Error//C++204.3kb2024-02-15 19:50:192024-02-15 19:50:20

Details

answer.code: In lambda function:
answer.code:28:317: error: no match for ‘operator!=’ (operand types are ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} and ‘std::__cxx11::basic_string<char>::iterator’)
   28 |       if(!i&&s.find("....*.**....*................*............................*..........*...............................................................................................................................................................................................................................")!=s.end()) flg=1;
      |              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
      |                    |                                                                                                                                                                                                                                                                                                               |
      |                    std::__cxx11::basic_string<char>::size_type {aka long unsigned int}                                                                                                                                                                                                                                             std::__cxx11::basic_string<char>::iterator
In file included from /usr/include/x86_64-linux-gnu/c++/13/bits/c++allocator.h:33,
                 from /usr/include/c++/13/bits/allocator.h:46,
                 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,
                 from answer.code:1:
/usr/include/c++/13/bits/new_allocator.h:211:9: note: candidate: ‘template<class _Up> constexpr bool std::operator==(const __new_allocator<char>&, const __new_allocator<_Tp>&)’ (reversed)
  211 |         operator==(const __new_allocator&, const __new_allocator<_Up>&)
      |         ^~~~~~~~
/usr/include/c++/13/bits/new_allocator.h:211:9: note:   template argument deduction/substitution failed:
answer.code:28:325: note:   mismatched types ‘const std::__new_allocator<_Tp>’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’}
   28 |       if(!i&&s.find("....*.**....*................*............................*..........*...............................................................................................................................................................................................................................")!=s.end()) flg=1;
      |                                                                                                                                                                                                                                                                                                                                     ^
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:28:325: note:   ‘std::__cxx11::basic_string<char>::iterator’ is not derived from ‘const std::reverse_iterator<_IteratorL>’
   28 |       if(!i&&s.find("....*.**....*................*............................*..........*...............................................................................................................................................................................................................................")!=s.end()) flg=1;
      |                                                                                                                                                                                                                                                                                                                                     ^
/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>&) requir...