Borderou de evaluare (job #795191)

Utilizator mihaibogdan10Mihai Bogdan mihaibogdan10 Data 7 octombrie 2012 18:50:07
Problema Infasuratoare convexa Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In member function ‘bool point::operator<(const point&) const’: user.cpp:9: warning: suggest parentheses around ‘&&’ within ‘||’ user.cpp: In function ‘int main()’: user.cpp:29: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result user.cpp:30: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result user.cpp:33: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result user.cpp:34: 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:2: /usr/include/c++/4.4/bits/stl_algo.h: In function ‘const _Tp& std::__median(const _Tp&, const _Tp&, const _Tp&, _Compare) [with _Tp = point, _Compare = double (*)(point&, point&)]’: /usr/include/c++/4.4/bits/stl_algo.h:2301: instantiated from ‘void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = point*, _Size = int, _Compare = double (*)(point&, point&)]’ /usr/include/c++/4.4/bits/stl_algo.h:5258: instantiated from ‘void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = point*, _Compare = double (*)(point&, point&)]’ user.cpp:37: instantiated from here /usr/include/c++/4.4/bits/stl_algo.h:124: error: invalid initialization of reference of type ‘point&’ from expression of type ‘const point’ /usr/include/c++/4.4/bits/stl_algo.h:125: error: invalid initialization of reference of type ‘point&’ from expression of type ‘const point’ /usr/include/c++/4.4/bits/stl_algo.h:127: error: invalid initialization of reference of type ‘point&’ from expression of type ‘const point’ /usr/include/c++/4.4/bits/stl_algo.h:131: error: invalid initialization of reference of type ‘point&’ from expression of type ‘const point’ /usr/include/c++/4.4/bits/stl_algo.h:133: error: invalid initialization of reference of type ‘point&’ from expression of type ‘const point’

Ceva nu functioneaza?