/in/foo.cc:19:16: error: stray '\357' in program
sort(a+1,a+1+i,cmpn);
^
/in/foo.cc:19:17: error: stray '\274' in program
sort(a+1,a+1+i,cmpn);
^
/in/foo.cc:19:18: error: stray '\214' in program
sort(a+1,a+1+i,cmpn);
^
/in/foo.cc: In function 'int main()':
/in/foo.cc:16:27: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'int' [-Wformat=]
for(; scanf("%d",a[i].hao)!=EOF; i++) {
^
/in/foo.cc:19:19: error: expected ')' before 'cmpn'
sort(a+1,a+1+i,cmpn);
^~~~
In file included from /usr/include/c++/6/bits/stl_algobase.h:71:0,
from /usr/include/c++/6/algorithm:61,
from /in/foo.cc:2:
/usr/include/c++/6/bits/predefined_ops.h: In instantiation of 'bool __gnu_cxx::__ops::_Iter_less_iter::operator()(_Iterator1, _Iterator2) const [with _Iterator1 = shu*; _Iterator2 = shu*]':
/usr/include/c++/6/bits/stl_algo.h:1844:14: required from 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = shu*; _Compare = __gnu_cxx::__ops::_Iter_less_iter]'
/usr/include/c++/6/bits/stl_algo.h:1882:25: required from 'void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = shu*; _Compare = __gnu_cxx::__ops::_Iter_less_iter]'
/usr/include/c++/6/bits/stl_algo.h:1968:31: required from 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = shu*; _Compare = __gnu_cxx::__ops::_Iter_less_iter]'
/usr/include/c++/6/bits/stl_algo.h:4707:18: required from 'void std::sort(_RAIter, _RAIter) [with _RAIter = shu*]'
/in/foo.cc:19:23: required from here
/usr/include/c++/6/bits/predefined_ops.h:43:23: error: no match for 'operator<' (operand types are 'shu' and 'shu')
{ return *__it1 < *__it2; }
~~~~~~~^~~~~~~~
In file included from /usr/include/c++/6/bits/stl_algobase.h:67:0,
from /usr/include/c++/6/algorithm:61,
from /in/foo.cc:2:
/usr/include/c++/6/bits/stl_iterator.h:885:5: note: candidate: template<class _IteratorL, class _IteratorR, class _Container> bool __gnu_cxx::operator<(const __gnu_cxx::__normal_iterator<_IteratorL, _Container>&, const __gnu_cxx::__normal_iterator<_IteratorR, _Container>&)
operator<(const __normal_iterator<_IteratorL, _Container>& __lhs,
^~~~~~~~
/usr/include/c++/6/bits/stl_iterator.h:885:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/6/bits/stl_algobase.h:71:0,
from /usr/include/c++/6/algorithm:61,
from /in/foo.cc:2:
/usr/include/c++/6/bits/predefined_ops.h:43:23: note: 'shu' is not derived from 'const __gnu_cxx::__normal_iterator<_IteratorL, _Container>'
{ return *__it1 < *__it2; }
~~~~~~~^~~~~~~~
In file included from /usr/include/c++/6/bits/stl_algobase.h:67:0,
from /usr/include/c++/6/algorithm:61,
from /in/foo.cc:2:
/usr/include/c++/6/bits/stl_iterator.h:892:5: note: candidate: template<class _Iterator, class _Container> bool __gnu_cxx::operator<(const __gnu_cxx::__normal_iterator<_Iterator, _Container>&, const __gnu_cxx::__normal_iterator<_Iterator, _Container>&)
operator<(const __normal_iterator<_Iterator, _Container>& __lhs,
^~~~~~~~
/usr/include/c++/6/bits/stl_iterator.h:892:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/6/bits/stl_algobase.h:71:0,
from /usr/include/c++/6/algorithm:61,
from /in/foo.cc:2:
/usr/include/c++/6/bits/predefined_ops.h:43:23: note: 'shu' is not derived from 'const __gnu_cxx::__normal_iterator<_Iterator, _Container>'
{ return *__it1 < *__it2; }
~~~~~~~^~~~~~~~
/usr/include/c++/6/bits/predefined_ops.h: In instantiation of 'bool __gnu_cxx::__ops::_Val_less_iter::operator()(_Value&, _Iterator) const [with _Value = shu; _Iterator = shu*]':
/usr/include/c++/6/bits/stl_algo.h:1825:20: required from 'void std::__unguarded_linear_insert(_RandomAccessIterator, _Compare) [with _RandomAccessIterator = shu*; _Compare = __gnu_cxx::__ops::_Val_less_iter]'
/usr/include/c++/6/bits/stl_algo.h:1852:36: required from 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = shu*; _Compare = __gnu_cxx::__ops::_Iter_less_iter]'
/usr/include/c++/6/bits/stl_algo.h:1882:25: required from 'void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = shu*; _Compare = __gnu_cxx::__ops::_Iter_less_iter]'
/usr/include/c++/6/bits/stl_algo.h:1968:31: required from 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = shu*; _Compare = __gnu_cxx::__ops::_Iter_less_iter]'
/usr/include/c++/6/bits/stl_algo.h:4707:18: required from 'void std::sort(_RAIter, _RAIter) [with _RAIter = shu*]'
/in/foo.cc:19:23: required from here
/usr/include/c++/6/bits/predefined_ops.h:72:22: error: no match for 'operator<' (operand types are 'shu' and 'shu')
{ return __val < *__it; }
~~~~~~^~~~~~~
In file included from /usr/include/c++/6/bits/stl_algobase.h:67:0,
from /usr/include/c++/6/algorithm:61,
from /in/foo.cc:2:
/usr/include/c++/6/bits/stl_iterator.h:885:5: note: candidate: template<class _IteratorL, class _IteratorR, class _Container> bool __gnu_cxx::operator<(const __gnu_cxx::__normal_iterator<_IteratorL, _Container>&, const __gnu_cxx::__normal_iterator<_IteratorR, _Container>&)
operator<(const __normal_iterator<_IteratorL, _Container>& __lhs,
^~~~~~~~
/usr/include/c++/6/bits/stl_iterator.h:885:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/6/bits/stl_algobase.h:71:0,
from /usr/include/c++/6/algorithm:61,
from /in/foo.cc:2:
/usr/include/c++/6/bits/predefined_ops.h:72:22: note: 'shu' is not derived from 'const __gnu_cxx::__normal_iterator<_IteratorL, _Container>'
{ return __val < *__it; }
~~~~~~^~~~~~~
In file included from /usr/include/c++/6/bits/stl_algobase.h:67:0,
from /usr/include/c++/6/algorithm:61,
from /in/foo.cc:2:
/usr/include/c++/6/bits/stl_iterator.h:892:5: note: candidate: template<class _Iterator, class _Container> bool __gnu_cxx::operator<(const __gnu_cxx::__normal_iterator<_Iterator, _Container>&, const __gnu_cxx::__normal_iterator<_Iterator, _Container>&)
operator<(const __normal_iterator<_Iterator, _Container>& __lhs,
^~~~~~~~
/usr/include/c++/6/bits/stl_iterator.h:892:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/6/bits/stl_algobase.h:71:0,
from /usr/include/c++/6/algorithm:61,
from /in/foo.cc:2:
/usr/include/c++/6/bits/predefined_ops.h:72:22: note: 'shu' is not derived from 'const __gnu_cxx::__normal_iterator<_Iterator, _Container>'
{ return __val < *__it; }
~~~~~~^~~~~~~
/usr/include/c++/6/bits/predefined_ops.h: In instantiation of 'bool __gnu_cxx::__ops::_Iter_less_val::operator()(_Iterator, _Value&) const [with _Iterator = shu*; _Value = shu]':
/usr/include/c++/6/bits/stl_heap.h:129:48: required from 'void std::__push_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare) [with _RandomAccessIterator = shu*; _Distance = long int; _Tp = shu; _Compare = __gnu_cxx::__ops::_Iter_less_val]'
/usr/include/c++/6/bits/stl_heap.h:230:23: required from 'void std::__adjust_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare) [with _RandomAccessIterator = shu*; _Distance = long int; _Tp = shu; _Compare = __gnu_cxx::__ops::_Iter_less_iter]'
/usr/include/c++/6/bits/stl_heap.h:335:22: required from 'void std::__make_heap(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = shu*; _Compare = __gnu_cxx::__ops::_Iter_less_iter]