Borderou de evaluare (job #1375334)

Utilizator casuneanu.andreiCasuneanu Andrei Dan casuneanu.andrei Data 5 martie 2015 13:00:24
Problema Desen 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:69:9: warning: unused variable ‘x’ [-Wunused-variable] int x, y; ^ user.cpp:69:12: warning: unused variable ‘y’ [-Wunused-variable] int x, y; ^ In file included from /usr/include/c++/4.8/algorithm:62:0, from user.cpp:3: /usr/include/c++/4.8/bits/stl_algo.h: In instantiation of ‘_RandomAccessIterator std::__unguarded_partition(_RandomAccessIterator, _RandomAccessIterator, const _Tp&, _Compare) [with _RandomAccessIterator = Vertex*; _Tp = Vertex; _Compare = bool (*)(Vertex&, Vertex&)]’: /usr/include/c++/4.8/bits/stl_algo.h:2319:78: required from ‘_RandomAccessIterator std::__unguarded_partition_pivot(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = Vertex*; _Compare = bool (*)(Vertex&, Vertex&)]’ /usr/include/c++/4.8/bits/stl_algo.h:2360:62: required from ‘void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = Vertex*; _Size = int; _Compare = bool (*)(Vertex&, Vertex&)]’ /usr/include/c++/4.8/bits/stl_algo.h:5513:44: required from ‘void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = Vertex*; _Compare = bool (*)(Vertex&, Vertex&)]’ user.cpp:41:29: required from here /usr/include/c++/4.8/bits/stl_algo.h:2287:35: error: invalid initialization of reference of type ‘Vertex&’ from expression of type ‘const Vertex’ while (__comp(*__first, __pivot)) ^ /usr/include/c++/4.8/bits/stl_algo.h:2290:34: error: invalid initialization of reference of type ‘Vertex&’ from expression of type ‘const Vertex’ while (__comp(__pivot, *__last)) ^

Ceva nu functioneaza?