Borderou de evaluare (job #523044)

Utilizator laurpoppopescu laurentiu laurpop Data 16 ianuarie 2011 23:21:00
Problema Desen Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: /usr/include/c++/4.2/bits/stl_algo.h: In function 'const _Tp& std::__median(const _Tp&, const _Tp&, const _Tp&, _Compare) [with _Tp = muchie, _Compare = bool (*)(muchie&, muchie&)]': /usr/include/c++/4.2/bits/stl_algo.h:2795: instantiated from 'void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = muchie*, _Size = int, _Compare = bool (*)(muchie&, muchie&)]' /usr/include/c++/4.2/bits/stl_algo.h:2866: instantiated from 'void std::sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = muchie*, _Compare = bool (*)(muchie&, muchie&)]' user.cpp:66: instantiated from here /usr/include/c++/4.2/bits/stl_algo.h:125: error: invalid initialization of reference of type 'muchie&' from expression of type 'const muchie' /usr/include/c++/4.2/bits/stl_algo.h:126: error: invalid initialization of reference of type 'muchie&' from expression of type 'const muchie' /usr/include/c++/4.2/bits/stl_algo.h:128: error: invalid initialization of reference of type 'muchie&' from expression of type 'const muchie' /usr/include/c++/4.2/bits/stl_algo.h:132: error: invalid initialization of reference of type 'muchie&' from expression of type 'const muchie' /usr/include/c++/4.2/bits/stl_algo.h:134: error: invalid initialization of reference of type 'muchie&' from expression of type 'const muchie'

Ceva nu functioneaza?