记录详情

Compile Error

In file included from /nix/store/az0d9jnqsm8g8nbc8n61w9y2x1lmdspk-gcc/include/c++/12.2.0/algorithm:61,
                 from foo.cc:1:
/nix/store/az0d9jnqsm8g8nbc8n61w9y2x1lmdspk-gcc/include/c++/12.2.0/bits/stl_algo.h: In instantiation of 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = int; _Compare = __gnu_cxx::__ops::_Iter_less_iter]':
/nix/store/az0d9jnqsm8g8nbc8n61w9y2x1lmdspk-gcc/include/c++/12.2.0/bits/stl_algo.h:1849:25:   required from 'void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = int; _Compare = __gnu_cxx::__ops::_Iter_less_iter]'
/nix/store/az0d9jnqsm8g8nbc8n61w9y2x1lmdspk-gcc/include/c++/12.2.0/bits/stl_algo.h:1940:31:   required from 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = int; _Compare = __gnu_cxx::__ops::_Iter_less_iter]'
/nix/store/az0d9jnqsm8g8nbc8n61w9y2x1lmdspk-gcc/include/c++/12.2.0/bits/stl_algo.h:4820:18:   required from 'void std::sort(_RAIter, _RAIter) [with _RAIter = int]'
foo.cc:13:9:   required from here
/nix/store/az0d9jnqsm8g8nbc8n61w9y2x1lmdspk-gcc/include/c++/12.2.0/bits/stl_algo.h:1812:17: error: no type named 'value_type' in 'struct std::iterator_traits<int>'
 1812 |                 __val = _GLIBCXX_MOVE(*__i);
      |                 ^~~~~
/nix/store/az0d9jnqsm8g8nbc8n61w9y2x1lmdspk-gcc/include/c++/12.2.0/bits/stl_algo.h:1814:15: error: invalid type argument of unary '*' (have 'int')
 1814 |               *__first = _GLIBCXX_MOVE(__val);
      |               ^~~~~~~~
/nix/store/az0d9jnqsm8g8nbc8n61w9y2x1lmdspk-gcc/include/c++/12.2.0/bits/stl_algo.h:1812:17: error: no type named 'value_type' in 'struct std::iterator_traits<int>'
 1812 |                 __val = _GLIBCXX_MOVE(*__i);
      |                 ^~~~~
In file included from /nix/store/az0d9jnqsm8g8nbc8n61w9y2x1lmdspk-gcc/include/c++/12.2.0/bits/stl_algobase.h:71,
                 from /nix/store/az0d9jnqsm8g8nbc8n61w9y2x1lmdspk-gcc/include/c++/12.2.0/algorithm:60:
/nix/store/az0d9jnqsm8g8nbc8n61w9y2x1lmdspk-gcc/include/c++/12.2.0/bits/predefined_ops.h: In instantiation of 'bool __gnu_cxx::__ops::_Iter_less_iter::operator()(_Iterator1, _Iterator2) const [with _Iterator1 = int; _Iterator2 = int]':
/nix/store/az0d9jnqsm8g8nbc8n61w9y2x1lmdspk-gcc/include/c++/12.2.0/bits/stl_algo.h:1809:14:   required from 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = int; _Compare = __gnu_cxx::__ops::_Iter_less_iter]'
/nix/store/az0d9jnqsm8g8nbc8n61w9y2x1lmdspk-gcc/include/c++/12.2.0/bits/stl_algo.h:1849:25:   required from 'void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = int; _Compare = __gnu_cxx::__ops::_Iter_less_iter]'
/nix/store/az0d9jnqsm8g8nbc8n61w9y2x1lmdspk-gcc/include/c++/12.2.0/bits/stl_algo.h:1940:31:   required from 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = int; _Compare = __gnu_cxx::__ops::_Iter_less_iter]'
/nix/store/az0d9jnqsm8g8nbc8n61w9y2x1lmdspk-gcc/include/c++/12.2.0/bits/stl_algo.h:4820:18:   required from 'void std::sort(_RAIter, _RAIter) [with _RAIter = int]'
foo.cc:13:9:   required from here
/nix/store/az0d9jnqsm8g8nbc8n61w9y2x1lmdspk-gcc/include/c++/12.2.0/bits/predefined_ops.h:45:16: error: invalid type argument of unary '*' (have 'int')
   45 |       { return *__it1 < *__it2; }
      |                ^~~~~~
/nix/store/az0d9jnqsm8g8nbc8n61w9y2x1lmdspk-gcc/include/c++/12.2.0/bits/predefined_ops.h:45:25: error: invalid type argument of unary '*' (have 'int')
   45 |       { return *__it1 < *__it2; }
      |                         ^~~~~~
In file included from /nix/store/az0d9jnqsm8g8nbc8n61w9y2x1lmdspk-gcc/include/c++/12.2.0/bits/stl_algo.h:60:
/nix/store/az0d9jnqsm8g8nbc8n61w9y2x1lmdspk-gcc/include/c++/12.2.0/bits/stl_heap.h: In instantiation of 'void std::__make_heap(_RandomAccessIterator, _RandomAccessIterator, _Compare&) [with _RandomAccessIterator = int; _Compare = __gnu_cxx::__ops::_Iter_less_iter]':
/nix/store/az0d9jnqsm8g8nbc8n61w9y2x1lmdspk-gcc/include/c++/12.2.0/bits/stl_algo.h:1629:23:   required from 'void std::__heap_select(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = int; _Compare = __gnu_cxx::__ops::_Iter_less_iter]'
/nix/store/az0d9jnqsm8g8nbc8n61w9y2x1lmdspk-gcc/include/c++/12.2.0/bits/stl_algo.h:1900:25:   required from 'void std::__partial_sort(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = int; _Compare = __gnu_cxx::__ops::_Iter_less_iter]'
/nix/store/az0d9jnqsm8g8nbc8n61w9y2x1lmdspk-gcc/include/c++/12.2.0/bits/stl_algo.h:1916:27:   required from 'void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = int; _Size = int; _Compare = __gnu_cxx::__ops::_Iter_less_iter]'
/nix/store/az0d9jnqsm8g8nbc8n61w9y2x1lmdspk-gcc/include/c++/12.2.0/bits/stl_algo.h:1937:25:   required from 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = int; _Compare = __gnu_cxx::__ops::_Iter_less_iter]'
/nix/store/az0d9jnqsm8g8nbc8n61w9y2x1lmdspk-gcc/include/c++/12.2.0/bits/stl_algo.h:4820:18:   required from 'void std::sort(_RAIter, _RAIter) [with _RAIter = int]'
foo.cc:13:9:   required from here
/nix/store/az0d9jnqsm8g8nbc8n61w9y2x1lmdspk-gcc/include/c++/12.2.0/bits/stl_heap.h:344:11: error: no type named 'value_type' in 'struct std::iterator_traits<int>'
  344 |           _ValueType;
      |           ^~~~~~~~~~
/nix/store/az0d9jnqsm8g8nbc8n61w9y2x1lmdspk-gcc/include/c++/12.2.0/bits/stl_heap.h:346:11: error: no type named 'difference_type' in 'struct std::iterator_traits<int>'
  346 |           _DistanceType;
      |           ^~~~~~~~~~~~~
/nix/store/az0d9jnqsm8g8nbc8n61w9y2x1lmdspk-gcc/include/c++/12.2.0/bits/stl_heap.h: In instantiation of 'void std::__pop_heap(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, _Compare&) [with _RandomAccessIterator = int; _Compare = __gnu_cxx::__ops::_Iter_less_iter]':
/nix/store/az0d9jnqsm8g8nbc8n61w9y2x1lmdspk-gcc/include/c++/12.2.0/bits/stl_algo.h:1632:19:   required from 'void std::__heap_select(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = int; _Compare = __gnu_cxx::__ops::_Iter_less_iter]'
/nix/store/az0d9jnqsm8g8nbc8n61w9y2x1lmdspk-gcc/include/c++/12.2.0/bits/stl_algo.h:1900:25:   required from 'void std::__partial_sort(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = int; _Compare = __gnu_cxx::__ops::_Iter_less_iter]'
/nix/store/az0d9jnqsm8g8nbc8n61w9y2x1lmdspk-gcc/include/c++/12.2.0/bits/stl_algo.h:1916:27:   required from 'void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = int; _Size = int; _Compare = __gnu_cxx::__ops::_Iter_less_iter]'
/nix/store/az0d9jnqsm8g8nbc8n61w9y2x1lmdspk-gcc/include/c++/12.2.0/bits/stl_algo.h:1937:25:   required from 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = int; _Compare = __gnu_cxx::__ops::_Iter_less_iter]'
/nix/store/az0d9jnqsm8g8nbc8n61w9y2x1lmdspk-gcc/include/c++/12.2.0/bits/stl_algo.h:4820:18:   required from 'void std::sort(_RAIter, _RAIter) [with _RAIter = int]'
foo.cc:13:9:   required from here
/nix/store/az0d9jnqsm8g8nbc8n61w9y2x1lmdspk-gcc/include/c++/12.2.0/bits/stl_heap.h:258:9: error: no type named 'value_type' in 'struct std::iterator_traits<int>'
  258 |         _ValueType;
      |         ^~~~~~~~~~
/nix/store/az0d9jnqsm8g8nbc8n61w9y2x1lmdspk-gcc/include/c++/12.2.0/bits/stl_heap.h:260:9: error: no type named 'difference_type' in 'struct std::iterator_traits<int>'
  260 |         _DistanceType;
      |         ^~~~~~~~~~~~~
/nix/store/az0d9jnqsm8g8nbc8n61w9y2x1lmdspk-gcc/include/c++/12.2.0/bits/stl_heap.h:263:7: error: invalid type argument of unary '*' (have 'int')
  263 |       *__result = _GLIBCXX_MOVE(*__first);
      |       ^~~~~~~~~
In file included from /nix/store/az0d9jnqsm8g8nbc8n61w9y2x1lmdspk-gcc/include/c++/12.2.0/bits/stl_pair.h:61,
                 from /nix/store/az0d9jnqsm8g8nbc8n61w9y2x1lmdspk-gcc/include/c++/12.2.0/bits/stl_algobase.h:64:
/nix/store/az0d9jnqsm8g8nbc8n61w9y2x1lmdspk-gcc/include/c++/12.2.0/bits/stl_heap.h:263:19: error: invalid type argument of unary '*' (have 'int')
  263 |       *__result = _GLIBCXX_MOVE(*__first);
      |                   ^~~~~~~~~~~~~
/nix/store/az0d9jnqsm8g8nbc8n61w9y2x1lmdspk-gcc/include/c++/12.2.0/bits/stl_algobase.h: In instantiation of 'void std::iter_swap(_ForwardIterator1, _ForwardIterator2) [with _ForwardIterator1 = int; _ForwardIterator2 = int]':
/nix/store/az0d9jnqsm8g8nbc8n61w9y2x1lmdspk-gcc/include/c++/12.2.0/bits/stl_algo.h:88:20:   required from 'void std::__move_median_to_first(_Iterator, _Iterator, _Iterator, _Iterator, _Compare) [with _Iterator = int; _Compare = __gnu_cxx::__ops::_Iter_less_iter]'
/nix/store/az0d9jnqsm8g8nbc8n61w9y2x1lmdspk-gcc/include/c++/12.2.0/bits/stl_algo.h:1887:34:   required from '_RandomAccessIterator std::__unguarded_partition_pivot(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = int; _Compare = __gnu_cxx::__ops::_Iter_less_iter]'
/nix/store/az0d9jnqsm8g8nbc8n61w9y2x1lmdspk-gcc/include/c++/12.2.0/bits/stl_algo.h:1921:38:   required from 'void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = int; _Size = int; _Compare = __gnu_cxx::__ops::_Iter_less_iter]'
/nix/store/az0d9jnqsm8g8nbc8n61w9y2x1lmdspk-gcc/include/c++/12.2.0/bits/stl_algo.h:1937:25:   required from 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = int; _Compare = __gnu_cxx::__ops::_Iter_less_iter]'
/nix/store/az0d9jnqsm8g8nbc8n61w9y2x1lmdspk-gcc/include/c++/12.2.0/bits/stl_algo.h:4820:18:   required from 'void std::sort(_RAIter, _RAIter) [with _RAIter = int]'
foo.cc:13:9:   required from here
/nix/store/az0d9jnqsm8g8nbc8n61w9y2x1lmdspk-gcc/include/c++/12.2.0/bits/stl_algobase.h:182:12: error: invalid type argument of unary '*' (have 'int')
  182 |       swap(*__a, *__b);
      |            ^~~~
/nix/store/az0d9jnqsm8g8nbc8n61w9y2x1lmdspk-gcc/include/c++/12.2.0/bits/stl_algobase.h:182:18: error: invalid type argument of unary '*' (have 'int')
  182 |       swap(*__a, *__b);
      |                  ^~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
题目
P1551 Problem 7B. 除数
语言
C++
递交时间
2023-11-22 19:27:55
评测时间
2023-11-22 19:27:55
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes