QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#861356 | #9975. Hitoshizuku | ucup-team4849# | Compile Error | / | / | C++14 | 2.0kb | 2025-01-18 17:06:38 | 2025-01-18 17:06:40 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
详细
In file included from /usr/include/c++/14/algorithm:61, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51, from answer.code:1: /usr/include/c++/14/bits/stl_algo.h: In instantiation of ‘_OutputIterator std::__merge(_InputIterator1, _InputIterator1, _InputIterator2, _InputIterator2, _OutputIterator, _Compare) [with _InputIterator1 = int; _InputIterator2 = long long int; _OutputIterator = long long int; _Compare = __gnu_cxx::__ops::_Iter_less_iter]’: /usr/include/c++/14/bits/stl_algo.h:4875:37: required from ‘_OIter std::merge(_IIter1, _IIter1, _IIter2, _IIter2, _OIter) [with _IIter1 = int; _IIter2 = long long int; _OIter = long long int]’ 4875 | return _GLIBCXX_STD_A::__merge(__first1, __last1, | ^ answer.code:77:8: required from here 77 | merge(1,0,n,u,n+1); | ~~~~~^~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4819:15: error: invalid type argument of unary ‘*’ (have ‘long long int’) 4819 | *__result = *__first2; | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4819:27: error: invalid type argument of unary ‘*’ (have ‘long long int’) 4819 | *__result = *__first2; | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4824:15: error: invalid type argument of unary ‘*’ (have ‘long long int’) 4824 | *__result = *__first1; | ^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4824:27: error: invalid type argument of unary ‘*’ (have ‘int’) 4824 | *__result = *__first1; | ^~~~~~~~~ In file included from /usr/include/c++/14/bits/stl_algobase.h:71, from /usr/include/c++/14/algorithm:60: /usr/include/c++/14/bits/predefined_ops.h: In instantiation of ‘constexpr bool __gnu_cxx::__ops::_Iter_less_iter::operator()(_Iterator1, _Iterator2) const [with _Iterator1 = long long int; _Iterator2 = int]’: /usr/include/c++/14/bits/stl_algo.h:4817:14: required from ‘_OutputIterator std::__merge(_InputIterator1, _InputIterator1, _InputIterator2, _InputIterator2, _OutputIterator, _Compare) [with _InputIterator1 = int; _InputIterator2 = long long int; _OutputIterator = long long int; _Compare = __gnu_cxx::__ops::_Iter_less_iter]’ 4817 | if (__comp(__first2, __first1)) | ~~~~~~^~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4875:37: required from ‘_OIter std::merge(_IIter1, _IIter1, _IIter2, _IIter2, _OIter) [with _IIter1 = int; _IIter2 = long long int; _OIter = long long int]’ 4875 | return _GLIBCXX_STD_A::__merge(__first1, __last1, | ^ answer.code:77:8: required from here 77 | merge(1,0,n,u,n+1); | ~~~~~^~~~~~~~~~~~~ /usr/include/c++/14/bits/predefined_ops.h:45:16: error: invalid type argument of unary ‘*’ (have ‘long long int’) 45 | { return *__it1 < *__it2; } | ^~~~~~ /usr/include/c++/14/bits/predefined_ops.h:45:25: error: invalid type argument of unary ‘*’ (have ‘int’) 45 | { return *__it1 < *__it2; } | ^~~~~~