QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#293595 | #7119. Longest Trip | ucup-team1265 | Compile Error | / | / | C++20 | 2.5kb | 2023-12-29 14:02:50 | 2024-04-28 09:21:53 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code: In function ‘std::vector<int> longest_trip(int, int)’: answer.code:60:25: error: no match for ‘operator>’ (operand types are ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} and ‘std::vector<int>’) 60 | if(path1.size() > path2) return path1; | ~~~~~~~~~~~~ ^ ~~~~~ | | | | | std::vector<int> | std::vector<int>::size_type {aka long unsigned 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:6: /usr/include/c++/13/bits/regex.h:1288:5: note: candidate: ‘template<class _Bi_iter, class _Ch_traits, class _Alloc> auto std::__cxx11::operator<=>(const sub_match<_BiIter>&, __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&)’ (reversed) 1288 | operator<=>(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/13/bits/regex.h:1288:5: note: template argument deduction/substitution failed: answer.code:60:27: note: ‘std::vector<int>’ is not derived from ‘const std::__cxx11::sub_match<_BiIter>’ 60 | if(path1.size() > path2) return path1; | ^~~~~ /usr/include/c++/13/bits/regex.h:1456:5: note: candidate: ‘template<class _Bi_iter> auto std::__cxx11::operator<=>(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)’ (reversed) 1456 | operator<=>(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/13/bits/regex.h:1456:5: note: template argument deduction/substitution failed: answer.code:60:27: note: ‘std::vector<int>’ is not derived from ‘const std::__cxx11::sub_match<_BiIter>’ 60 | if(path1.size() > path2) return path1; | ^~~~~ /usr/include/c++/13/bits/regex.h:1629:5: note: candidate: ‘template<class _Bi_iter> auto std::__cxx11::operator<=>(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)’ (reversed) 1629 | operator<=>(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/13/bits/regex.h:1629:5: note: template argument deduction/substitution failed: answer.code:60:27: note: ‘std::vector<int>’ is not derived from ‘const std::__cxx11::sub_match<_BiIter>’ 60 | if(path1.size() > path2) return path1; | ^~~~~ In file included from /usr/include/c++/13/bits/stl_algobase.h:67, from /usr/include/c++/13/vector:62, from longesttrip.h:1, from answer.code:4: /usr/include/c++/13/bits/stl_iterator.h:583:5: note: candidate: ‘template<class _IteratorL, class _IteratorR> requires three_way_comparable_with<_IteratorR, _IteratorL, std::partial_ordering> constexpr std::compare_three_way_result_t<_IteratorL, _IteratorR> std::operator<=>(const reverse_iterator<_IteratorL>&, const reverse_iterator<_IteratorR>&)’ (reversed) 583 | operator<=>(const reverse_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/13/bits/stl_iterator.h:583:5: note: template argument deduction/substitution failed: answer.code:60:27: note: ‘std::vector<int>’ is not derived from ‘const std::reverse_iterator<_IteratorL>’ 60 | if(path1.size() > path2) return path1; | ^~~~~ /usr/include/c++/13/bits/stl_iterator.h:1690:5: note: candidate: ‘template<class _IteratorL, class _IteratorR> requires three_way_comparable_with<_IteratorR, _IteratorL, std::partial_ordering> constexpr std::compare_three_way_result_t<_IteratorL, _IteratorR> std::operator<=>(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)’ (reversed) 1690 | operator<=>(const move_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/13/bits/stl_iterator.h:1690:5: note: template argument deduction/substitution failed: answer.code:60:27: note: ‘std::vector<int>’ is not derived from ‘const std::move_iterator<_IteratorL>’ 60 | if(path1.size() > path2) return path1; | ^~~~~ In file included from /usr/include/c++/13/bits/uses_allocator_args.h:38, from /usr/include/c++/13/bits/memory_resource.h:41, from /usr/include/c++/13/vector:80: /usr/include/c++/13/tuple:1938:5: note: candidate: ‘template<class ... _Tps, class ... _Ups> constexpr std::common_comparison_category_t<decltype (std::__detail::__synth3way(declval<_Tps&>(), declval<_Ups&>()))...> std::operator<=>(const tuple<_UTypes ...>&, const tuple<_UTypes ...>&)’ (reversed) 1938 | operator<=>(const tuple<_Tps...>& __t, const tuple<_Ups...>& __u) | ^~~~~~~~ /usr/include/c++/13/tuple:1938:5: note: template argument deduction/substitution failed: answer.code:60:27: note: ‘std::vector<int>’ is not derived from ‘const std::tuple<_UTypes ...>’ 60 | if(path1.size() > path2) return path1; | ...