Borderou de evaluare (job #614450)

Utilizator pantaniMarco Pantani pantani Data 6 octombrie 2011 16:06:09
Problema Mexc Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void read()’: user.cpp:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result user.cpp:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result In file included from /usr/include/c++/4.4/algorithm:62, from user.cpp:5: /usr/include/c++/4.4/bits/stl_algo.h: In function ‘const _Tp& std::__median(const _Tp&, const _Tp&, const _Tp&, _Compare) [with _Tp = intz, _Compare = int (*)(intz&, intz&)]’: /usr/include/c++/4.4/bits/stl_algo.h:2301: instantiated from ‘void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = intz*, _Size = int, _Compare = int (*)(intz&, intz&)]’ /usr/include/c++/4.4/bits/stl_algo.h:5258: instantiated from ‘void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = intz*, _Compare = int (*)(intz&, intz&)]’ user.cpp:65: instantiated from here /usr/include/c++/4.4/bits/stl_algo.h:124: error: invalid initialization of reference of type ‘intz&’ from expression of type ‘const intz’ /usr/include/c++/4.4/bits/stl_algo.h:125: error: invalid initialization of reference of type ‘intz&’ from expression of type ‘const intz’ /usr/include/c++/4.4/bits/stl_algo.h:127: error: invalid initialization of reference of type ‘intz&’ from expression of type ‘const intz’ /usr/include/c++/4.4/bits/stl_algo.h:131: error: invalid initialization of reference of type ‘intz&’ from expression of type ‘const intz’ /usr/include/c++/4.4/bits/stl_algo.h:133: error: invalid initialization of reference of type ‘intz&’ from expression of type ‘const intz’

Ceva nu functioneaza?