Borderou de evaluare (job #1831796)

Utilizator tudi98Cozma Tudor tudi98 Data 18 decembrie 2016 19:30:57
Problema Matrice 2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: In file included from /usr/include/c++/4.8/algorithm:62:0, from user.cpp:2: /usr/include/c++/4.8/bits/stl_algo.h: In instantiation of ‘_RandomAccessIterator std::__unguarded_partition(_RandomAccessIterator, _RandomAccessIterator, const _Tp&) [with _RandomAccessIterator = Coord*; _Tp = Coord]’: /usr/include/c++/4.8/bits/stl_algo.h:2307:70: required from ‘_RandomAccessIterator std::__unguarded_partition_pivot(_RandomAccessIterator, _RandomAccessIterator) [with _RandomAccessIterator = Coord*]’ /usr/include/c++/4.8/bits/stl_algo.h:2338:54: required from ‘void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size) [with _RandomAccessIterator = Coord*; _Size = int]’ /usr/include/c++/4.8/bits/stl_algo.h:5475:36: required from ‘void std::sort(_RAIter, _RAIter) [with _RAIter = Coord*]’ user.cpp:95:17: required from here /usr/include/c++/4.8/bits/stl_algo.h:2269:19: error: passing ‘const Coord’ as ‘this’ argument of ‘bool Coord::operator<(const Coord&)’ discards qualifiers [-fpermissive] while (__pivot < *__last) ^ /usr/include/c++/4.8/bits/stl_algo.h: In instantiation of ‘_RandomAccessIterator std::__unguarded_partition(_RandomAccessIterator, _RandomAccessIterator, const _Tp&) [with _RandomAccessIterator = Query*; _Tp = Query]’: /usr/include/c++/4.8/bits/stl_algo.h:2307:70: required from ‘_RandomAccessIterator std::__unguarded_partition_pivot(_RandomAccessIterator, _RandomAccessIterator) [with _RandomAccessIterator = Query*]’ /usr/include/c++/4.8/bits/stl_algo.h:2338:54: required from ‘void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size) [with _RandomAccessIterator = Query*; _Size = int]’ /usr/include/c++/4.8/bits/stl_algo.h:5475:36: required from ‘void std::sort(_RAIter, _RAIter) [with _RAIter = Query*]’ user.cpp:101:23: required from here /usr/include/c++/4.8/bits/stl_algo.h:2269:19: error: passing ‘const Query’ as ‘this’ argument of ‘bool Query::operator<(const Query&)’ discards qualifiers [-fpermissive]

Ceva nu functioneaza?