Borderou de evaluare (job #936878)

Utilizator Cosmin1490Balan Radu Cosmin Cosmin1490 Data 9 aprilie 2013 00:08:21
Problema Rubarba Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: In file included from /usr/include/c++/4.4/algorithm:62, from user.cpp:12: /usr/include/c++/4.4/bits/stl_algo.h: In function ‘const _Tp& std::__median(const _Tp&, const _Tp&, const _Tp&, _Compare) [with _Tp = Point, _Compare = bool (*)(Point&, Point&)]’: /usr/include/c++/4.4/bits/stl_algo.h:2301: instantiated from ‘void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<Point*, std::vector<Point, std::allocator<Point> > >, _Size = int, _Compare = bool (*)(Point&, Point&)]’ /usr/include/c++/4.4/bits/stl_algo.h:5258: instantiated from ‘void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = __gnu_cxx::__normal_iterator<Point*, std::vector<Point, std::allocator<Point> > >, _Compare = bool (*)(Point&, Point&)]’ user.cpp:90: instantiated from here /usr/include/c++/4.4/bits/stl_algo.h:124: error: invalid initialization of reference of type ‘Point&’ from expression of type ‘const Point’ /usr/include/c++/4.4/bits/stl_algo.h:125: error: invalid initialization of reference of type ‘Point&’ from expression of type ‘const Point’ /usr/include/c++/4.4/bits/stl_algo.h:127: error: invalid initialization of reference of type ‘Point&’ from expression of type ‘const Point’ /usr/include/c++/4.4/bits/stl_algo.h:131: error: invalid initialization of reference of type ‘Point&’ from expression of type ‘const Point’ /usr/include/c++/4.4/bits/stl_algo.h:133: error: invalid initialization of reference of type ‘Point&’ from expression of type ‘const Point’

Ceva nu functioneaza?