QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#842385 | #9970. Looping RPS | ucup-team5322# | Compile Error | / | / | C++14 | 4.1kb | 2025-01-04 12:14:31 | 2025-01-04 12:14:31 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
詳細信息
answer.code: In function ‘int main()’: answer.code:159:60: error: no match for ‘operator!=’ (operand types are ‘Hash_t’ and ‘Hash_t’) 159 | if (query(i, j, j + l - 1) != query(i, 0, l - 1)) break; | ~~~~~~~~~~~~~~~~~~~~~~ ^~ ~~~~~~~~~~~~~~~~~~ | | | | Hash_t Hash_t 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:1: /usr/include/c++/13/bits/regex.h:1132:5: note: candidate: ‘template<class _BiIter> bool std::__cxx11::operator!=(const sub_match<_BiIter>&, const sub_match<_BiIter>&)’ 1132 | operator!=(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs) | ^~~~~~~~ /usr/include/c++/13/bits/regex.h:1132:5: note: template argument deduction/substitution failed: answer.code:159:80: note: ‘Hash_t’ is not derived from ‘const std::__cxx11::sub_match<_BiIter>’ 159 | if (query(i, j, j + l - 1) != query(i, 0, l - 1)) break; | ^ /usr/include/c++/13/bits/regex.h:1212:5: note: candidate: ‘template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator!=(__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&, const sub_match<_BiIter>&)’ 1212 | operator!=(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/13/bits/regex.h:1212:5: note: template argument deduction/substitution failed: answer.code:159:80: note: ‘Hash_t’ is not derived from ‘std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>’ 159 | if (query(i, j, j + l - 1) != query(i, 0, l - 1)) break; | ^ /usr/include/c++/13/bits/regex.h:1305: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>&)’ 1305 | operator!=(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/13/bits/regex.h:1305:5: note: template argument deduction/substitution failed: answer.code:159:80: note: ‘Hash_t’ is not derived from ‘const std::__cxx11::sub_match<_BiIter>’ 159 | if (query(i, j, j + l - 1) != query(i, 0, l - 1)) break; | ^ /usr/include/c++/13/bits/regex.h:1379:5: note: candidate: ‘template<class _Bi_iter> bool std::__cxx11::operator!=(const typename std::iterator_traits<_Iter>::value_type*, const sub_match<_BiIter>&)’ 1379 | operator!=(typename iterator_traits<_Bi_iter>::value_type const* __lhs, | ^~~~~~~~ /usr/include/c++/13/bits/regex.h:1379:5: note: template argument deduction/substitution failed: answer.code:159:80: note: ‘Hash_t’ is not derived from ‘const std::__cxx11::sub_match<_BiIter>’ 159 | if (query(i, j, j + l - 1) != query(i, 0, l - 1)) break; | ^ /usr/include/c++/13/bits/regex.h:1473:5: note: candidate: ‘template<class _Bi_iter> bool std::__cxx11::operator!=(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)’ 1473 | operator!=(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/13/bits/regex.h:1473:5: note: template argument deduction/substitution failed: answer.code:159:80: note: ‘Hash_t’ is not derived from ‘const std::__cxx11::sub_match<_BiIter>’ 159 | if (query(i, j, j + l - 1) != query(i, 0, l - 1)) break; | ^ /usr/include/c++/13/bits/regex.h:1547:5: note: candidate: ‘template<class _Bi_iter> bool std::__cxx11::operator!=(const typename std::iterator_traits<_Iter>::value_type&, const sub_match<_BiIter>&)’ 1547 | operator!=(typename iterator_traits<_Bi_iter>::value_type const& __lhs, | ^~~~~~~~ /usr/include/c++/13/bits/regex.h:1547:5: note: template argument deduction/substitution failed: answer.code:159:80: note: ‘Hash_t’ is not derived from ‘const std::__cxx11::sub_match<_BiIter>’ 159 | if (query(i, j, j + l - 1) != query(i, 0, l - 1)) break; | ^ /usr/include/c++/13/bits/regex.h:1647:5: note: candidate: ‘template<class _Bi_iter> bool std::__cxx11::operator!=(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)’ 1647 | operator!=(...