Borderou de evaluare (job #747206)

Utilizator mika17Mihai Alex Ionescu mika17 Data 11 mai 2012 19:08:11
Problema Cercuri4 Status done
Runda FMI No Stress 2012 Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void getI(std::vector<long long int, std::allocator<long long int> >&, int)’: user.cpp:24: warning: comparison between signed and unsigned integer expressions In file included from /usr/include/c++/4.4/algorithm:62, from user.cpp:3: /usr/include/c++/4.4/bits/stl_algo.h: In function ‘const _Tp& std::__median(const _Tp&, const _Tp&, const _Tp&, _Compare) [with _Tp = cerc, _Compare = bool (*)(cerc&, cerc&)]’: /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<cerc*, std::vector<cerc, std::allocator<cerc> > >, _Size = int, _Compare = bool (*)(cerc&, cerc&)]’ /usr/include/c++/4.4/bits/stl_algo.h:5258: instantiated from ‘void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = __gnu_cxx::__normal_iterator<cerc*, std::vector<cerc, std::allocator<cerc> > >, _Compare = bool (*)(cerc&, cerc&)]’ user.cpp:61: instantiated from here /usr/include/c++/4.4/bits/stl_algo.h:124: error: invalid initialization of reference of type ‘cerc&’ from expression of type ‘const cerc’ /usr/include/c++/4.4/bits/stl_algo.h:125: error: invalid initialization of reference of type ‘cerc&’ from expression of type ‘const cerc’ /usr/include/c++/4.4/bits/stl_algo.h:127: error: invalid initialization of reference of type ‘cerc&’ from expression of type ‘const cerc’ /usr/include/c++/4.4/bits/stl_algo.h:131: error: invalid initialization of reference of type ‘cerc&’ from expression of type ‘const cerc’ /usr/include/c++/4.4/bits/stl_algo.h:133: error: invalid initialization of reference of type ‘cerc&’ from expression of type ‘const cerc’

Ceva nu functioneaza?