QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#370884 | #8513. Insects, Mathematics, Accuracy, and Efficiency | ucup-team2016 | Compile Error | / | / | C++20 | 8.5kb | 2024-03-29 18:38:07 | 2024-03-29 18:38:08 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code: In function ‘std::vector<Point<long long int> > convex_hull(std::vector<Point<long long int> >)’: answer.code:99:28: error: no match for ‘operator==’ (operand types are ‘__gnu_cxx::__alloc_traits<std::allocator<Point<long long int> >, Point<long long int> >::value_type’ {aka ‘Point<long long int>’} and ‘__gnu_cxx::__alloc_traits<std::allocator<Point<long long int> >, Point<long long int> >::value_type’ {aka ‘Point<long long int>’}) 99 | if (!v.empty() && v[0] == v.back()) { 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:5: /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:99:38: note: ‘__gnu_cxx::__alloc_traits<std::allocator<Point<long long int> >, Point<long long int> >::value_type’ {aka ‘Point<long long int>’} is not derived from ‘const std::__cxx11::sub_match<_BiIter>’ 99 | if (!v.empty() && v[0] == v.back()) { | ^ /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:99:38: note: ‘__gnu_cxx::__alloc_traits<std::allocator<Point<long long int> >, Point<long long int> >::value_type’ {aka ‘Point<long long int>’} is not derived from ‘const std::__cxx11::sub_match<_BiIter>’ 99 | if (!v.empty() && v[0] == v.back()) { | ^ /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:99:38: note: ‘__gnu_cxx::__alloc_traits<std::allocator<Point<long long int> >, Point<long long int> >::value_type’ {aka ‘Point<long long int>’} is not derived from ‘const std::__cxx11::sub_match<_BiIter>’ 99 | if (!v.empty() && v[0] == v.back()) { | ^ 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:99:38: note: ‘__gnu_cxx::__alloc_traits<std::allocator<Point<long long int> >, Point<long long int> >::value_type’ {aka ‘Point<long long int>’} is not derived from ‘const std::reverse_iterator<_IteratorL>’ 99 | if (!v.empty() && v[0] == v.back()) { | ^ /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:99:38: note: ‘__gnu_cxx::__alloc_traits<std::allocator<Point<long long int> >, Point<long long int> >::value_type’ {aka ‘Point<long long int>’} is not derived from ‘const std::move_iterator<_IteratorL>’ 99 | if (!v.empty() && v[0] == v.back()) { | ^ 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: ca...