Borderou de evaluare (job #270375)
Utilizator | Data | 3 martie 2009 22:26:16 | |
---|---|---|---|
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 = 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:63: 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?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !