0_0_15931801_25657.cpp:10:16: error: reference to 'rank' is ambiguous
int cmp(struct rank a,struct rank b){
^
0_0_15931801_25657.cpp:6:8: note: candidates are: struct rank
struct rank{
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:57:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:70,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
from 0_0_15931801_25657.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_15931801_25657.cpp:10:30: error: reference to 'rank' is ambiguous
int cmp(struct rank a,struct rank b){
^
0_0_15931801_25657.cpp:6:8: note: candidates are: struct rank
struct rank{
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:57:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:70,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
from 0_0_15931801_25657.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_15931801_25657.cpp: In function 'int cmp(int, int)':
0_0_15931801_25657.cpp:11:11: error: request for member 'erank' in 'a', which is of non-class type 'int'
return a.erank<b.erank;
^
0_0_15931801_25657.cpp:11:19: error: request for member 'erank' in 'b', which is of non-class type 'int'
return a.erank<b.erank;
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:71:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:61,
from 0_0_15931801_25657.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/predefined_ops.h: In instantiation of 'bool __gnu_cxx::__ops::_Iter_comp_iter<_Compare>::operator()(_Iterator1, _Iterator2) [with _Iterator1 = rank*; _Iterator2 = rank*; _Compare = int (*)(int, int)]':
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1846:27: required from 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = rank*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<int (*)(int, int)>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1884:70: required from 'void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = rank*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<int (*)(int, int)>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1970:55: required from 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = rank*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<int (*)(int, int)>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4716:78: required from 'void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = rank*; _Compare = int (*)(int, int)]'
0_0_15931801_25657.cpp:21:23: required from here
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/predefined_ops.h:121:46: error: cannot convert 'rank' to 'int' in argument passing
{ return bool(_M_comp(*__it1, *__it2)); }
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/predefined_ops.h: In instantiation of 'bool __gnu_cxx::__ops::_Val_comp_iter<_Compare>::operator()(_Value&, _Iterator) [with _Value = rank; _Iterator = rank*; _Compare = int (*)(int, int)]':
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1827:34: required from 'void std::__unguarded_linear_insert(_RandomAccessIterator, _Compare) [with _RandomAccessIterator = rank*; _Compare = __gnu_cxx::__ops::_Val_comp_iter<int (*)(int, int)>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1855:46: required from 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = rank*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<int (*)(int, int)>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1884:70: required from 'void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = rank*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<int (*)(int, int)>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1970:55: required from 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = rank*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<int (*)(int, int)>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4716:78: required from 'void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = rank*; _Compare = int (*)(int, int)]'
0_0_15931801_25657.cpp:21:23: required from here
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/predefined_ops.h:166:37: error: cannot convert 'rank' to 'int' in argument passing
{ return bool(_M_comp(__val, *__it)); }
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/predefined_ops.h: In instantiation of 'bool __gnu_cxx::__ops::_Iter_comp_val<_Compare>::operator()(_Iterator, _Value&) [with _Iterator = rank*; _Value = rank; _Compare = int (*)(int, int)]':
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_heap.h:129:76: required from 'void std::__push_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare) [with _RandomAccessIterator = rank*; _Distance = long long int; _Tp = rank; _Compare = __gnu_cxx::__ops::_Iter_comp_val<int (*)(int, int)>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_heap.h:230:51: required from 'void std::__adjust_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare) [with _RandomAccessIterator = rank*; _Distance = long long int; _Tp = rank; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<int (*)(int, int)>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_heap.h:334:15: required from 'void std::__make_heap(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = rank*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<int (*)(int, int)>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1673:49: required from 'void std::__heap_select(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = rank*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<int (*)(int, int)>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1932:59: required from 'void std::__partial_sort(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = rank*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<int (*)(int, int)>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1947:59: required from 'void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = rank*; _Size = long long int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<int (*)(int, int)>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1969:11: required from 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = rank*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<int (*)(int, int)>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4716:78: required from 'void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = rank*; _Compare = int (*)(int, int)]'
0_0_15931801_25657.cpp:21:23: required from here
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/predefined_ops.h:141:37: error: cannot convert 'rank' to 'int' in argument passing
{ return bool(_M_comp(*__it, __val)); }
^
|