cultivation.cpp: In function 'int uniq(int*, int)':
cultivation.cpp:16:32: error: no matching function for call to 'sort(int*&, int&, long unsigned int, int (&)(const void*, const void*))'
sort(retsu,len,sizeof(int),cmp);
^
In file included from /usr/include/c++/5/algorithm:62:0,
from cultivation.cpp:4:
/usr/include/c++/5/bits/stl_algo.h:4689:5: note: candidate: template<class _RAIter> void std::sort(_RAIter, _RAIter)
sort(_RandomAccessIterator __first, _RandomAccessIterator __last)
^
/usr/include/c++/5/bits/stl_algo.h:4689:5: note: template argument deduction/substitution failed:
cultivation.cpp:16:32: note: deduced conflicting types for parameter '_RAIter' ('int*' and 'int')
sort(retsu,len,sizeof(int),cmp);
^
In file included from /usr/include/c++/5/algorithm:62:0,
from cultivation.cpp:4:
/usr/include/c++/5/bits/stl_algo.h:4718:5: note: candidate: template<class _RAIter, class _Compare> void std::sort(_RAIter, _RAIter, _Compare)
sort(_RandomAccessIterator __first, _RandomAccessIterator __last,
^
/usr/include/c++/5/bits/stl_algo.h:4718:5: note: template argument deduction/substitution failed:
cultivation.cpp:16:32: note: deduced conflicting types for parameter '_RAIter' ('int*' and 'int')
sort(retsu,len,sizeof(int),cmp);
^
cultivation.cpp: In function 'int main()':
cultivation.cpp:115:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<cand_len;i++) for(int j=0;j<qrs_tmg[i].size();j++) {
^
cultivation.cpp:122:40: error: no matching function for call to 'sort(evs [999999], int&, long unsigned int, int (&)(const void*, const void*))'
sort(event,events_len,sizeof(evs),cmp2);
^
In file included from /usr/include/c++/5/algorithm:62:0,
from cultivation.cpp:4:
/usr/include/c++/5/bits/stl_algo.h:4689:5: note: candidate: template<class _RAIter> void std::sort(_RAIter, _RAIter)
sort(_RandomAccessIterator __first, _RandomAccessIterator __last)
^
/usr/include/c++/5/bits/stl_algo.h:4689:5: note: template argument deduction/substitution failed:
cultivation.cpp:122:40: note: deduced conflicting types for parameter '_RAIter' ('evs*' and 'int')
sort(event,events_len,sizeof(evs),cmp2);
^
In file included from /usr/include/c++/5/algorithm:62:0,
from cultivation.cpp:4:
/usr/include/c++/5/bits/stl_algo.h:4718:5: note: candidate: template<class _RAIter, class _Compare> void std::sort(_RAIter, _RAIter, _Compare)
sort(_RandomAccessIterator __first, _RandomAccessIterator __last,
^
/usr/include/c++/5/bits/stl_algo.h:4718:5: note: template argument deduction/substitution failed:
cultivation.cpp:122:40: note: deduced conflicting types for parameter '_RAIter' ('evs*' and 'int')
sort(event,events_len,sizeof(evs),cmp2);
^
cultivation.cpp:98:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d",&R,&C,&N);
^
cultivation.cpp:99:50: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for(int i=0;i<N;i++) scanf("%d%d",&rs[i],&cs[i]);
^