J.cpp: In function 'int main()':
J.cpp:64:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
In file included from /usr/include/c++/4.6/algorithm:63:0,
from J.cpp:3:
/usr/include/c++/4.6/bits/stl_algo.h: In function '_RandomAccessIterator std::__unguarded_partition(_RandomAccessIterator, _RandomAccessIterator, const _Tp&, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<CRD*, std::vector<CRD> >, _Tp = CRD, _Compare = bool (*)(CRD&, CRD&)]':
/usr/include/c++/4.6/bits/stl_algo.h:2265:78: instantiated from '_RandomAccessIterator std::__unguarded_partition_pivot(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<CRD*, std::vector<CRD> >, _Compare = bool (*)(CRD&, CRD&)]'
/usr/include/c++/4.6/bits/stl_algo.h:2306:62: instantiated from 'void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<CRD*, std::vector<CRD> >, _Size = long int, _Compare = bool (*)(CRD&, CRD&)]'
/usr/include/c++/4.6/bits/stl_algo.h:5445:4: instantiated from 'void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = __gnu_cxx::__normal_iterator<CRD*, std::vector<CRD> >, _Compare = bool (*)(CRD&, CRD&)]'
J.cpp:38:45: instantiated from here
/usr/include/c++/4.6/bits/stl_algo.h:2233:4: error: invalid initialization of reference of type 'CRD&' from expression of type 'const CRD'
/usr/include/c++/4.6/bits/stl_algo.h:2236:4: error: invalid initialization of reference of type 'CRD&' from expression of type 'const CRD'
J.cpp: In function 'int main()':
J.cpp:29:21: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
J.cpp:34:30: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
J.cpp:44:21: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]