Borderou de evaluare (job #1858990)

Utilizator iordache.bogdanIordache Ioan-Bogdan iordache.bogdan Data 27 ianuarie 2017 17:02:30
Problema Nori Status done
Runda PreOJI 2017 Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: In file included from /usr/include/c++/4.8/algorithm:62:0, from user.cpp:4: /usr/include/c++/4.8/bits/stl_algo.h: In instantiation of ‘_RandomAccessIterator std::__unguarded_partition(_RandomAccessIterator, _RandomAccessIterator, const _Tp&) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<Event*, std::vector<Event> >; _Tp = Event]’: /usr/include/c++/4.8/bits/stl_algo.h:2307:70: required from ‘_RandomAccessIterator std::__unguarded_partition_pivot(_RandomAccessIterator, _RandomAccessIterator) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<Event*, std::vector<Event> >]’ /usr/include/c++/4.8/bits/stl_algo.h:2338:54: required from ‘void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<Event*, std::vector<Event> >; _Size = int]’ /usr/include/c++/4.8/bits/stl_algo.h:5475:36: required from ‘void std::sort(_RAIter, _RAIter) [with _RAIter = __gnu_cxx::__normal_iterator<Event*, std::vector<Event> >]’ user.cpp:73:35: required from here /usr/include/c++/4.8/bits/stl_algo.h:2269:19: error: passing ‘const Event’ as ‘this’ argument of ‘bool Event::operator<(const Event&)’ discards qualifiers [-fpermissive] while (__pivot < *__last) ^

Ceva nu functioneaza?