Borderou de evaluare (job #338759)

Utilizator prdianaProdan Diana prdiana Data 6 august 2009 20:29:15
Problema Arbore partial de cost minim Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:74:2: warning: no newline at end of file user.cpp: In function 'int main()': user.cpp:69: warning: comparison between signed and unsigned integer expressions /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 = int (*)(muchie&, muchie&)]': /usr/include/c++/4.2/bits/stl_algo.h:2795: instantiated from 'void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<muchie*, std::vector<muchie, std::allocator<muchie> > >, _Size = int, _Compare = int (*)(muchie&, muchie&)]' /usr/include/c++/4.2/bits/stl_algo.h:2866: instantiated from 'void std::sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<muchie*, std::vector<muchie, std::allocator<muchie> > >, _Compare = int (*)(muchie&, muchie&)]' user.cpp:45: 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?