In file included from /usr/include/c++/4.6/algorithm:63:0,
from PE.cpp:1:
/usr/include/c++/4.6/bits/stl_algo.h: In function '_RandomAccessIterator std::__unguarded_partition(_RandomAccessIterator, _RandomAccessIterator, const _Tp&) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<SubmitInfo*, std::vector<SubmitInfo> >, _Tp = SubmitInfo]':
/usr/include/c++/4.6/bits/stl_algo.h:2253:70: instantiated from '_RandomAccessIterator std::__unguarded_partition_pivot(_RandomAccessIterator, _RandomAccessIterator) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<SubmitInfo*, std::vector<SubmitInfo> >]'
/usr/include/c++/4.6/bits/stl_algo.h:2284:54: instantiated from 'void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<SubmitInfo*, std::vector<SubmitInfo> >, _Size = long int]'
/usr/include/c++/4.6/bits/stl_algo.h:5407:4: instantiated from 'void std::sort(_RAIter, _RAIter) [with _RAIter = __gnu_cxx::__normal_iterator<SubmitInfo*, std::vector<SubmitInfo> >]'
PE.cpp:36:71: instantiated from here
/usr/include/c++/4.6/bits/stl_algo.h:2215:4: error: passing 'const SubmitInfo' as 'this' argument of 'bool SubmitInfo::operator<(const SubmitInfo&)' discards qualifiers [-fpermissive]
PE.cpp: In function 'int main()':
PE.cpp:29:34: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
PE.cpp:33:79: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]