QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#861356#9975. Hitoshizukuucup-team4849#Compile Error//C++142.0kb2025-01-18 17:06:382025-01-18 17:06:40

详细

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; }
      |                         ^~~~~~