implementer.cpp: In function ‘int main()’:
implementer.cpp:60:14: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
60 | fread(Interactor::rbuf,1,50000000,stdin);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
answer.code: In function ‘int centroid(int, int, int)’:
answer.code:18:22: error: invalid types ‘int[int]’ for array subscript
18 | rep(i,1,N) id[i]=i;
| ^
answer.code:25:26: error: invalid types ‘int[int]’ for array subscript
25 | return id[(N+1)/2];
| ^
In file included from /usr/include/c++/13/algorithm:60,
from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:51,
from answer.code:1:
/usr/include/c++/13/bits/stl_algobase.h: In instantiation of ‘void std::iter_swap(_ForwardIterator1, _ForwardIterator2) [with _ForwardIterator1 = int; _ForwardIterator2 = int]’:
/usr/include/c++/13/bits/stl_algo.h:1967:22: required from ‘void std::__introselect(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = int; _Size = int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(int, int)>]’
/usr/include/c++/13/bits/stl_algo.h:4829:25: required from ‘void std::nth_element(_RAIter, _RAIter, _RAIter, _Compare) [with _RAIter = int; _Compare = bool (*)(int, int)]’
answer.code:24:14: required from here
/usr/include/c++/13/bits/stl_algobase.h:185:12: error: invalid type argument of unary ‘*’ (have ‘int’)
185 | swap(*__a, *__b);
| ^~~~
/usr/include/c++/13/bits/stl_algobase.h:185:18: error: invalid type argument of unary ‘*’ (have ‘int’)
185 | swap(*__a, *__b);
| ^~~~
In file included from /usr/include/c++/13/algorithm:61:
/usr/include/c++/13/bits/stl_algo.h: In instantiation of ‘void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(int, int)>]’:
/usr/include/c++/13/bits/stl_algo.h:1978:28: required from ‘void std::__introselect(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = int; _Size = int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(int, int)>]’
/usr/include/c++/13/bits/stl_algo.h:4829:25: required from ‘void std::nth_element(_RAIter, _RAIter, _RAIter, _Compare) [with _RAIter = int; _Compare = bool (*)(int, int)]’
answer.code:24:14: required from here
/usr/include/c++/13/bits/stl_algo.h:1822:17: error: no type named ‘value_type’ in ‘struct std::iterator_traits<int>’
1822 | __val = _GLIBCXX_MOVE(*__i);
| ^~~~~
/usr/include/c++/13/bits/stl_algo.h:1824:15: error: invalid type argument of unary ‘*’ (have ‘int’)
1824 | *__first = _GLIBCXX_MOVE(__val);
| ^~~~~~~~
/usr/include/c++/13/bits/stl_algo.h:1822:17: error: no type named ‘value_type’ in ‘struct std::iterator_traits<int>’
1822 | __val = _GLIBCXX_MOVE(*__i);
| ^~~~~
In file included from /usr/include/c++/13/bits/stl_algo.h:61:
/usr/include/c++/13/bits/stl_heap.h: In instantiation of ‘void std::__make_heap(_RandomAccessIterator, _RandomAccessIterator, _Compare&) [with _RandomAccessIterator = int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(int, int)>]’:
/usr/include/c++/13/bits/stl_algo.h:1635:23: required from ‘void std::__heap_select(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(int, int)>]’
/usr/include/c++/13/bits/stl_algo.h:1965:26: required from ‘void std::__introselect(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = int; _Size = int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(int, int)>]’
/usr/include/c++/13/bits/stl_algo.h:4829:25: required from ‘void std::nth_element(_RAIter, _RAIter, _RAIter, _Compare) [with _RAIter = int; _Compare = bool (*)(int, int)]’
answer.code:24:14: required from here
/usr/include/c++/13/bits/stl_heap.h:344:11: error: no type named ‘value_type’ in ‘struct std::iterator_traits<int>’
344 | _ValueType;
| ^~~~~~~~~~
/usr/include/c++/13/bits/stl_heap.h:346:11: error: no type named ‘difference_type’ in ‘struct std::iterator_traits<int>’
346 | _DistanceType;
| ^~~~~~~~~~~~~
In file included from /usr/include/c++/13/bits/stl_algobase.h:71:
/usr/include/c++/13/bits/predefined_ops.h: In instantiation of ‘constexpr bool __gnu_cxx::__ops::_Iter_comp_iter<_Compare>::operator()(_Iterator1, _Iterator2) [with _Iterator1 = int; _Iterator2 = int; _Compare = bool (*)(int, int)]’:
/usr/include/c++/13/bits/stl_algo.h:1637:1...