#1187
Roboti1
O firmă de construcţii imobiliare a achiziţionat recent un teren dreptunghiular de dimensiuni N×M
. Terenul este împărțit în parcele de dimensiune 1x1
. Pe unele dintre cele N×M
parcele sunt plantați copaci. Firma dorește construirea unui grandios complex comercial și este necesară defrișarea întregului teren. În acest scop sunt utilizați roboți, fiecare robot având baza un pătrat de latură L
. Suprafața defrișată de fiecare robot la un moment dat este chiar aria de acoperire a robotului, L×L
. Fiecare robot pătrunde prin colțul stânga sus de coordonate (1, 1)
, se poate deplasa doar în dreapta și în jos și poate părăsi suprafața numai prin colțul dreapta jos, de coordonate (N, M)
.
Cunoscând dimensiunile N
, M
ale terenului și coordonatele parcelelor în care sunt plantați copaci se cere:
1. Numărul minim de roboți necesari defrișării întregului teren.
2. Să se răspundă la Q
interogări de forma k
, unde k
este un număr natural. Pentru fiecare interogare de această formă va trebui determinată latura minimă a unui robot astfel încât să fie necesari pentru defrișare cel mult k
roboți.
ONI 2015, Clasa a IX-a
Problema | Roboti1 | Operații I/O |
roboti1.in /roboti1.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 8 MB
/
Stivă 8 MB
|
Id soluție | #28414814 | Utilizator | |
Fișier | roboti1.cpp | Dimensiune | 2.29 KB |
Data încărcării | 04 Martie 2021, 21:03 | Scor / rezultat | Eroare de compilare |
roboti1.cpp:7:27: error: 'onst' does not name a type struct Cell { int i, j;onst { ^ In file included from /usr/include/c++/4.8/algorithm:62:0, from roboti1.cpp:2: /usr/include/c++/4.8/bits/stl_algo.h: In instantiation of 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<Cell*, std::vector<Cell> >]': /usr/include/c++/4.8/bits/stl_algo.h:2211:62: required from 'void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<Cell*, std::vector<Cell> >]' /usr/include/c++/4.8/bits/stl_algo.h:5462:47: required from 'void std::sort(_RAIter, _RAIter) [with _RAIter = __gnu_cxx::__normal_iterator<Cell*, std::vector<Cell> >]' roboti1.cpp:40:30: required from here /usr/include/c++/4.8/bits/stl_algo.h:2137:13: error: no match for 'operator<' (operand types are 'Cell' and 'Cell') if (*__i < *__first) ^ /usr/include/c++/4.8/bits/stl_algo.h:2137:13: note: candidates are: In file included from /usr/include/c++/4.8/bits/stl_algobase.h:64:0, from /usr/include/c++/4.8/bits/char_traits.h:39, from /usr/include/c++/4.8/ios:40, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from roboti1.cpp:1: /usr/include/c++/4.8/bits/stl_pair.h:220:5: note: template<class _T1, class _T2> constexpr bool std::operator<(const std::pair<_T1, _T2>&, const std::pair<_T1, _T2>&) operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) ^ /usr/include/c++/4.8/bits/stl_pair.h:220:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/4.8/algorithm:62:0, from roboti1.cpp:2: /usr/include/c++/4.8/bits/stl_algo.h:2137:13: note: 'Cell' is not derived from 'const std::pair<_T1, _T2>' if (*__i < *__first) ^ In file included from /usr/include/c++/4.8/bits/stl_algobase.h:67:0, from /usr/include/c++/4.8/bits/char_traits.h:39, from /usr/include/c++/4.8/ios:40, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from roboti1.cpp:1: /usr/include/c++/4.8/bits/stl_iterator.h:297:5: note: template<class _Iterator> bool std::operator<(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_Iterator>&) operator<(const reverse_iterator<_Iterator>& __x, ^ /usr/include/c++/4.8/bits/stl_iterator.h:297:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/4.8/algorithm:62:0, from roboti1.cpp:2: /usr/include/c++/4.8/bits/stl_algo.h:2137:13: note: 'Cell' is not derived from 'const std::reverse_iterator<_Iterator>' if (*__i < *__first) ^ In file included from /usr/include/c++/4.8/bits/stl_algobase.h:67:0, from /usr/include/c++/4.8/bits/char_traits.h:39, from /usr/include/c++/4.8/ios:40, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from roboti1.cpp:1: /usr/include/c++/4.8/bits/stl_iterator.h:347:5: note: template<class _IteratorL, class _IteratorR> bool std::operator<(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_IteratorR>&) operator<(const reverse_iterator<_IteratorL>& __x, ^ /usr/include/c++/4.8/bits/stl_iterator.h:347:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/4.8/algorithm:62:0, from roboti1.cpp:2: /usr/include/c++/4.8/bits/stl_algo.h:2137:13: note: 'Cell' is not derived from 'const std::reverse_iterator<_Iterator>' if (*__i < *__first) ^ In file included from /usr/include/c++/4.8/bits/stl_algobase.h:67:0, from /usr/include/c++/4.8/bits/char_traits.h:39, from /usr/include/c++/4.8/ios:40, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from roboti1.cpp:1: /usr/include/c++/4.8/bits/stl_iterator.h:1055:5: note: template<class _IteratorL, class _IteratorR> bool std::operator<(const std::move_iterator<_Iterator>&, const std::move_iterator<_IteratorR>&) operator<(const move_iterator<_IteratorL>& __x, ^ /usr/include/c++/4.8/bits/stl_iterator.h:1055:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/4.8/algorithm:62:0, from roboti1.cpp:2: /usr/include/c++/4.8/bits/stl_algo.h:2137:13: note: 'Cell' is not derived from 'const std::move_iterator<_Iterator>' if (*__i < *__first) ^ In file included from /usr/include/c++/4.8/bits/stl_algobase.h:67:0, from /usr/include/c++/4.8/bits/char_traits.h:39, from /usr/include/c++/4.8/ios:40, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from roboti1.cpp:1: /usr/include/c++/4.8/bits/stl_iterator.h:1061:5: note: template<class _Iterator> bool std::operator<(const std::move_iterator<_Iterator>&, const std::move_iterator<_Iterator>&) operator<(const move_iterator<_Iterator>& __x, ^ /usr/include/c++/4.8/bits/stl_iterator.h:1061:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/4.8/algorithm:62:0, from roboti1.cpp:2: /usr/include/c++/4.8/bits/stl_algo.h:2137:13: note: 'Cell' is not derived from 'const std::move_iterator<_Iterator>' if (*__i < *__first) ^ In file included from /usr/include/c++/4.8/string:52:0, from /usr/include/c++/4.8/bits/locale_classes.h:40, from /usr/include/c++/4.8/bits/ios_base.h:41, from /usr/include/c++/4.8/ios:42, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from roboti1.cpp:1: /usr/include/c++/4.8/bits/basic_string.h:2569:5: note: template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const std::basic_string<_CharT, _Traits, _Alloc>&, const std::basic_string<_CharT, _Traits, _Alloc>&) operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs, ^ /usr/include/c++/4.8/bits/basic_string.h:2569:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/4.8/algorithm:62:0, from roboti1.cpp:2: /usr/include/c++/4.8/bits/stl_algo.h:2137:13: note: 'Cell' is not derived from 'const std::basic_string<_CharT, _Traits, _Alloc>' if (*__i < *__first) ^ In file included from /usr/include/c++/4.8/string:52:0, from /usr/include/c++/4.8/bits/locale_classes.h:40, from /usr/include/c++/4.8/bits/ios_base.h:41, from /usr/include/c++/4.8/ios:42, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from roboti1.cpp:1: /usr/include/c++/4.8/bits/basic_string.h:2581:5: note: template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const std::basic_string<_CharT, _Traits, _Alloc>&, const _CharT*) operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs, ^ /usr/include/c++/4.8/bits/basic_string.h:2581:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/4.8/algorithm:62:0, from roboti1.cpp:2: /usr/include/c++/4.8/bits/stl_algo.h:2137:13: note: 'Cell' is not derived from 'const std::basic_string<_CharT, _Traits, _Alloc>' if (*__i < *__first) ^ In file included from /usr/include/c++/4.8/string:52:0, from /usr/include/c++/4.8/bits/locale_classes.h:40, from /usr/include/c++/4.8/bits/ios_base.h:41, from /usr/include/c++/4.8/ios:42, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from roboti1.cpp:1: /usr/include/c++/4.8/bits/basic_string.h:2593:5: note: template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const _CharT*, const std::basic_string<_CharT, _Traits, _Alloc>&) operator<(const _CharT* __lhs, ^ /usr/include/c++/4.8/bits/basic_string.h:2593:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/4.8/algorithm:62:0, from roboti1.cpp:2: /usr/include/c++/4.8/bits/stl_algo.h:2137:13: note: mismatched types 'const _CharT*' and 'Cell' if (*__i < *__first) ^ In file included from /usr/include/c++/4.8/vector:64:0, from /usr/include/c++/4.8/bits/random.h:34, from /usr/include/c++/4.8/random:50, from /usr/include/c++/4.8/bits/stl_algo.h:65, from /usr/include/c++/4.8/algorithm:62, from roboti1.cpp:2: /usr/include/c++/4.8/bits/stl_vector.h:1421:5: note: template<class _Tp, class _Alloc> bool std::operator<(const std::vector<_Tp, _Alloc>&, const std::vector<_Tp, _Alloc>&) operator<(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) ^ /usr/include/c++/4.8/bits/stl_vector.h:1421:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/4.8/algorithm:62:0, from roboti1.cpp:2: /usr/include/c++/4.8/bits/stl_algo.h:2137:13: note: 'Cell' is not derived from 'const std::vector<_Tp, _Alloc>' if (*__i < *__first) ^ In file included from /usr/include/c++/4.8/tuple:39:0, from /usr/include/c++/4.8/functional:55, from /usr/include/c++/4.8/bits/stl_algo.h:66, from /usr/include/c++/4.8/algorithm:62, from roboti1.cpp:2: /usr/include/c++/4.8/array:238:5: note: template<class _Tp, unsigned int _Nm> bool std::operator<(const std::array<_Tp, _Nm>&, const std::array<_Tp, _Nm>&) operator<(const array<_Tp, _Nm>& __a, const array<_Tp, _Nm>& __b) ^ /usr/include/c++/4.8/array:238:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/4.8/algorithm:62:0, from roboti1.cpp:2: /usr/include/c++/4.8/bits/stl_algo.h:2137:13: note: 'Cell' is not derived from 'const std::array<_Tp, _Nm>' if (*__i < *__first) ^ In file included from /usr/include/c++/4.8/functional:55:0, from /usr/include/c++/4.8/bits/stl_algo.h:66, from /usr/include/c++/4.8/algorithm:62, from roboti1.cpp:2: /usr/include/c++/4.8/tuple:824:5: note: template<class ... _TElements, class ... _UElements> constexpr bool std::operator<(const std::tuple<_Elements ...>&, const std::tuple<_Elements ...>&) operator<(const tuple<_TElements...>& __t, ^ /usr/include/c++/4.8/tuple:824:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/4.8/algorithm:62:0, from roboti1.cpp:2: /usr/include/c++/4.8/bits/stl_algo.h:2137:13: note: 'Cell' is not derived from 'const std::tuple<_Elements ...>' if (*__i < *__first) ^ /usr/include/c++/4.8/bits/stl_algo.h: In instantiation of 'void std::__heap_select(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<Cell*, std::vector<Cell> >]': /usr/include/c++/4.8/bits/stl_algo.h:5308:51: required from 'void std::partial_sort(_RAIter, _RAIter, _RAIter) [with _RAIter = __gnu_cxx::__normal_iterator<Cell*, std::vector<Cell> >]' /usr/include/c++/4.8/bits/stl_algo.h:2310:60: required from 'void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<Cell*, std::vector<Cell> >; _Size = int]' /usr/include/c++/4.8/bits/stl_algo.h:5461:36: required from 'void std::sort(_RAIter, _RAIter) [with _RAIter = __gnu_cxx::__normal_iterator<Cell*, std::vector<Cell> >]' roboti1.cpp:40:30: required from here /usr/include/c++/4.8/bits/stl_algo.h:1935:11: error: no match for 'operator<' (operand types are 'Cell' and 'Cell') if (*__i < *__first) ^ /usr/include/c++/4.8/bits/stl_algo.h:1935:11: note: candidates are: In file included from /usr/include/c++/4.8/bits/stl_algobase.h:64:0, from /usr/include/c++/4.8/bits/char_traits.h:39, from /usr/include/c++/4.8/ios:40, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from roboti1.cpp:1: /usr/include/c++/4.8/bits/stl_pair.h:220:5: note: template<class _T1, class _T2> constexpr bool std::operator<(const std::pair<_T1, _T2>&, const std::pair<_T1, _T2>&) operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) ^ /usr/include/c++/4.8/bits/stl_pair.h:220:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/4.8/algorithm:62:0, from roboti1.cpp:2: /usr/include/c++/4.8/bits/stl_algo.h:1935:11: note: 'Cell' is not derived from 'const std::pair<_T1, _T2>' if (*__i < *__first) ^ In file included from /usr/include/c++/4.8/bits/stl_algobase.h:67:0, from /usr/include/c++/4.8/bits/char_traits.h:39, from /usr/include/c++/4.8/ios:40, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from roboti1.cpp:1: /usr/include/c++/4.8/bits/stl_iterator.h:297:5: note: template<class _Iterator> bool std::operator<(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_Iterator>&) operator<(const reverse_iterator<_Iterator>& __x, ^ /usr/include/c++/4.8/bits/stl_iterator.h:297:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/4.8/algorithm:62:0, from roboti1.cpp:2: /usr/include/c++/4.8/bits/stl_algo.h:1935:11: note: 'Cell' is not derived from 'const std::reverse_iterator<_Iterator>' if (*__i < *__first) ^ In file included from /usr/include/c++/4.8/bits/stl_algobase.h:67:0, from /usr/include/c++/4.8/bits/char_traits.h:39, from /usr/include/c++/4.8/ios:40, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from roboti1.cpp:1: /usr/include/c++/4.8/bits/stl_iterator.h:347:5: note: template<class _IteratorL, class _IteratorR> bool std::operator<(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_IteratorR>&) operator<(const reverse_iterator<_IteratorL>& __x, ^ /usr/include/c++/4.8/bits/stl_iterator.h:347:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/4.8/algorithm:62:0, from roboti1.cpp:2: /usr/include/c++/4.8/bits/stl_algo.h:1935:11: note: 'Cell' is not derived from 'const std::reverse_iterator<_Iterator>' if (*__i < *__first) ^ In file included from /usr/include/c++/4.8/bits/stl_algobase.h:67:0, from /usr/include/c++/4.8/bits/char_traits.h:39, from /usr/include/c++/4.8/ios:40, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from roboti1.cpp:1: /usr/include/c++/4.8/bits/stl_iterator.h:1055:5: note: template<class _IteratorL, class _IteratorR> bool std::operator<(const std::move_iterator<_Iterator>&, const std::move_iterator<_IteratorR>&) operator<(const move_iterator<_IteratorL>& __x, ^ /usr/include/c++/4.8/bits/stl_iterator.h:1055:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/4.8/algorithm:62:0, from roboti1.cpp:2: /usr/include/c++/4.8/bits/stl_algo.h:1935:11: note: 'Cell' is not derived from 'const std::move_iterator<_Iterator>' if (*__i < *__first) ^ In file included from /usr/include/c++/4.8/bits/stl_algobase.h:67:0, from /usr/include/c++/4.8/bits/char_traits.h:39, from /usr/include/c++/4.8/ios:40, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from roboti1.cpp:1: /usr/include/c++/4.8/bits/stl_iterator.h:1061:5: note: template<class _Iterator> bool std::operator<(const std::move_iterator<_Iterator>&, const std::move_iterator<_Iterator>&) operator<(const move_iterator<_Iterator>& __x, ^ /usr/include/c++/4.8/bits/stl_iterator.h:1061:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/4.8/algorithm:62:0, from roboti1.cpp:2: /usr/include/c++/4.8/bits/stl_algo.h:1935:11: note: 'Cell' is not derived from 'const std::move_iterator<_Iterator>' if (*__i < *__first) ^ In file included from /usr/include/c++/4.8/string:52:0, from /usr/include/c++/4.8/bits/locale_classes.h:40, from /usr/include/c++/4.8/bits/ios_base.h:41, from /usr/include/c++/4.8/ios:42, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from roboti1.cpp:1: /usr/include/c++/4.8/bits/basic_string.h:2569:5: note: template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const std::basic_string<_CharT, _Traits, _Alloc>&, const std::basic_string<_CharT, _Traits, _Alloc>&) operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs, ^ /usr/include/c++/4.8/bits/basic_string.h:2569:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/4.8/algorithm:62:0, from roboti1.cpp:2: /usr/include/c++/4.8/bits/stl_algo.h:1935:11: note: 'Cell' is not derived from 'const std::basic_string<_CharT, _Traits, _Alloc>' if (*__i < *__first) ^ In file included from /usr/include/c++/4.8/string:52:0, from /usr/include/c++/4.8/bits/locale_classes.h:40, from /usr/include/c++/4.8/bits/ios_base.h:41, from /usr/include/c++/4.8/ios:42, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from roboti1.cpp:1: /usr/include/c++/4.8/bits/basic_string.h:2581:5: note: template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const std::basic_string<_CharT, _Traits, _Alloc>&, const _CharT*) operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs, ^ /usr/include/c++/4.8/bits/basic_string.h:2581:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/4.8/algorithm:62:0, from roboti1.cpp:2: /usr/include/c++/4.8/bits/stl_algo.h:1935:11: note: 'Cell' is not derived from 'const std::basic_string<_CharT, _Traits, _Alloc>' if (*__i < *__first) ^ In file included from /usr/include/c++/4.8/string:52:0, from /usr/include/c++/4.8/bits/locale_classes.h:40, from /usr/include/c++/4.8/bits/ios_base.h:41, from /usr/include/c++/4.8/ios:42, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from roboti1.cpp:1: /usr/include/c++/4.8/bits/basic_string.h:2593:5: note: template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const _CharT*, const std::basic_string<_CharT, _Traits, _Alloc>&) operator<(const _CharT* __lhs, ^ /usr/include/c++/4.8/bits/basic_string.h:2593:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/4.8/algorithm:62:0, from roboti1.cpp:2: /usr/include/c++/4.8/bits/stl_algo.h:1935:11: note: mismatched types 'const _CharT*' and 'Cell' if (*__i < *__first) ^ In file included from /usr/include/c++/4.8/vector:64:0, from /usr/include/c++/4.8/bits/random.h:34, from /usr/include/c++/4.8/random:50, from /usr/include/c++/4.8/bits/stl_algo.h:65, from /usr/include/c++/4.8/algorithm:62, from roboti1.cpp:2: /usr/include/c++/4.8/bits/stl_vector.h:1421:5: note: template<class _Tp, class _Alloc> bool std::operator<(const std::vector<_Tp, _Alloc>&, const std::vector<_Tp, _Alloc>&) operator<(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) ^ /usr/include/c++/4.8/bits/stl_vector.h:1421:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/4.8/algorithm:62:0, from roboti1.cpp:2: /usr/include/c++/4.8/bits/stl_algo.h:1935:11: note: 'Cell' is not derived from 'const std::vector<_Tp, _Alloc>' if (*__i < *__first) ^ In file included from /usr/include/c++/4.8/tuple:39:0, from /usr/include/c++/4.8/functional:55, from /usr/include/c++/4.8/bits/stl_algo.h:66, from /usr/include/c++/4.8/algorithm:62, from roboti1.cpp:2: /usr/include/c++/4.8/array:238:5: note: template<class _Tp, unsigned int _Nm> bool std::operator<(const std::array<_Tp, _Nm>&, const std::array<_Tp, _Nm>&) operator<(const array<_Tp, _Nm>& __a, const array<_Tp, _Nm>& __b) ^ /usr/include/c++/4.8/array:238:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/4.8/algorithm:62:0, from roboti1.cpp:2: /usr/include/c++/4.8/bits/stl_algo.h:1935:11: note: 'Cell' is not derived from 'const std::array<_Tp, _Nm>' if (*__i < *__first) ^ In file included from /usr/include/c++/4.8/functional:55:0, from /usr/include/c++/4.8/bits/stl_algo.h:66, from /usr/include/c++/4.8/algorithm:62, from roboti1.cpp:2: /usr/include/c++/4.8/tuple:824:5: note: template<class ... _TElements, class ... _UElements> constexpr bool std::operator<(const std::tuple<_Elements ...>&, const std::tuple<_Elements ...>&) operator<(const tuple<_TElements...>& __t, ^ /usr/include/c++/4.8/tuple:824:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/4.8/algorithm:62:0, from roboti1.cpp:2: /usr/include/c++/4.8/bits/stl_algo.h:1935:11: note: 'Cell' is not derived from 'const std::tuple<_Elements ...>' if (*__i < *__first) ^ /usr/include/c++/4.8/bits/stl_algo.h: In instantiation of 'void std::__move_median_to_first(_Iterator, _Iterator, _Iterator, _Iterator) [with _Iterator = __gnu_cxx::__normal_iterator<Cell*, std::vector<Cell> >]': /usr/include/c++/4.8/bits/stl_algo.h:2282:74: required from '_RandomAccessIterator std::__unguarded_partition_pivot(_RandomAccessIterator, _RandomAccessIterator) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<Cell*, std::vector<Cell> >]' /usr/include/c++/4.8/bits/stl_algo.h:2315:54: required from 'void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<Cell*, std::vector<Cell> >; _Size = int]' /usr/include/c++/4.8/bits/stl_algo.h:5461:36: required from 'void std::sort(_RAIter, _RAIter) [with _RAIter = __gnu_cxx::__normal_iterator<Cell*, std::vector<Cell> >]' roboti1.cpp:40:30: required from here /usr/include/c++/4.8/bits/stl_algo.h:85:16: error: no match for 'operator<' (operand types are 'Cell' and 'Cell') if (*__a < *__b) ^ /usr/include/c++/4.8/bits/stl_algo.h:85:16: note: candidates are: In file included from /usr/include/c++/4.8/bits/stl_algobase.h:64:0, from /usr/include/c++/4.8/bits/char_traits.h:39, from /usr/include/c++/4.8/ios:40, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from roboti1.cpp:1: /usr/include/c++/4.8/bits/stl_pair.h:220:5: note: template<class _T1, class _T2> constexpr bool std::operator<(const std::pair<_T1, _T2>&, const std::pair<_T1, _T2>&) operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) ^ /usr/include/c++/4.8/bits/stl_pair.h:220:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/4.8/algorithm:62:0, from roboti1.cpp:2: /usr/include/c++/4.8/bits/stl_algo.h:85:16: note: 'Cell' is not derived from 'const std::pair<_T1, _T2>' if (*__a < *__b) ^ In file included from /usr/include/c++/4.8/bits/stl_algobase.h:67:0, from /usr/include/c++/4.8/bits/char_traits.h:39, from /usr/include/c++/4.8/ios:40, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from roboti1.cpp:1: /usr/include/c++/4.8/bits/stl_iterator.h:297:5: note: template<class _Iterator> bool std::operator<(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_Iterator>&) operator<(const reverse_iterator<_Iterator>& __x, ^ /usr/include/c++/4.8/bits/stl_iterator.h:297:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/4.8/algorithm:62:0, from roboti1.cpp:2: /usr/include/c++/4.8/bits/stl_algo.h:85:16: note: 'Cell' is not derived from 'const std::reverse_iterator<_Iterator>' if (*__a < *__b) ^ In file included from /usr/include/c++/4.8/bits/stl_algobase.h:67:0, from /usr/include/c++/4.8/bits/char_traits.h:39, from /usr/include/c++/4.8/ios:40, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from roboti1.cpp:1: /usr/include/c++/4.8/bits/stl_iterator.h:347:5: note: template<class _IteratorL, class _IteratorR> bool std::operator<(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_IteratorR>&) operator<(const reverse_iterator<_IteratorL>& __x, ^ /usr/include/c++/4.8/bits/stl_iterator.h:347:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/4.8/algorithm:62:0, from roboti1.cpp:2: /usr/include/c++/4.8/bits/stl_algo.h:85:16: note: 'Cell' is not derived from 'const std::reverse_iterator<_Iterator>' if (*__a < *__b) ^ In file included from /usr/include/c++/4.8/bits/stl_algobase.h:67:0, from /usr/include/c++/4.8/bits/char_traits.h:39, from /usr/include/c++/4.8/ios:40, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from roboti1.cpp:1: /usr/include/c++/4.8/bits/stl_iterator.h:1055:5: note: template<class _IteratorL, class _IteratorR> bool std::operator<(const std::move_iterator<_Iterator>&, const std::move_iterator<_IteratorR>&) operator<(const move_iterator<_IteratorL>& __x, ^ /usr/include/c++/4.8/bits/stl_iterator.h:1055:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/4.8/algorithm:62:0, from roboti1.cpp:2: /usr/include/c++/4.8/bits/stl_algo.h:85:16: note: 'Cell' is not derived from 'const std::move_iterator<_Iterator>' if (*__a < *__b) ^ In file included from /usr/include/c++/4.8/bits/stl_algobase.h:67:0, from /usr/include/c++/4.8/bits/char_traits.h:39, from /usr/include/c++/4.8/ios:40, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from roboti1.cpp:1: /usr/include/c++/4.8/bits/stl_iterator.h:1061:5: note: template<class _Iterator> bool std::operator<(const std::move_iterator<_Iterator>&, const std::move_iterator<_Iterator>&) operator<(const move_iterator<_Iterator>& __x, ^ /usr/include/c++/4.8/bits/stl_iterator.h:1061:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/4.8/algorithm:62:0, from roboti1.cpp:2: /usr/include/c++/4.8/bits/stl_algo.h:85:16: note: 'Cell' is not derived from 'const std::move_iterator<_Iterator>' if (*__a < *__b) ^ In file included from /usr/include/c++/4.8/string:52:0, from /usr/include/c++/4.8/bits/locale_classes.h:40, from /usr/include/c++/4.8/bits/ios_base.h:41, from /usr/include/c++/4.8/ios:42, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from roboti1.cpp:1: /usr/include/c++/4.8/bits/basic_string.h:2569:5: note: template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const std::basic_string<_CharT, _Traits, _Alloc>&, const std::basic_string<_CharT, _Traits, _Alloc>&) operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs, ^ /usr/include/c++/4.8/bits/basic_string.h:2569:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/4.8/algorithm:62:0, from roboti1.cpp:2: /usr/include/c++/4.8/bits/stl_algo.h:85:16: note: 'Cell' is not derived from 'const std::basic_string<_CharT, _Traits, _Alloc>' if (*__a < *__b) ^ In file included from /usr/include/c++/4.8/string:52:0, from /usr/include/c++/4.8/bits/locale_classes.h:40, from /usr/include/c++/4.8/bits/ios_base.h:41, from /usr/include/c++/4.8/ios:42, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from roboti1.cpp:1: /usr/include/c++/4.8/bits/basic_string.h:2581:5: note: template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const std::basic_string<_CharT, _Traits, _Alloc>&, const _CharT*) operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs, ^ /usr/include/c++/4.8/bits/basic_string.h:2581:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/4.8/algorithm:62:0, from roboti1.cpp:2: /usr/include/c++/4.8/bits/stl_algo.h:85:16: note: 'Cell' is not derived from 'const std::basic_string<_CharT, _Traits, _Alloc>' if (*__a < *__b) ^ In file included from /usr/include/c++/4.8/string:52:0, from /usr/include/c++/4.8/bits/locale_classes.h:40, from /usr/include/c++/4.8/bits/ios_base.h:41, from /usr/include/c++/4.8/ios:42, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from roboti1.cpp:1: /usr/include/c++/4.8/bits/basic_string.h:2593:5: note: template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const _CharT*, const std::basic_string<_CharT, _Traits, _Alloc>&) operator<(const _CharT* __lhs, ^ /usr/include/c++/4.8/bits/basic_string.h:2593:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/4.8/algorithm:62:0, from roboti1.cpp:2: /usr/include/c++/4.8/bits/stl_algo.h:85:16: note: mismatched types 'const _CharT*' and 'Cell' if (*__a < *__b) ^ In file included from /usr/include/c++/4.8/vector:64:0, from /usr/include/c++/4.8/bits/random.h:34, from /usr/include/c++/4.8/random:50, from /usr/include/c++/4.8/bits/stl_algo.h:65, from /usr/include/c++/4.8/algorithm:62, from roboti1.cpp:2: /usr/include/c++/4.8/bits/stl_vector.h:1421:5: note: template<class _Tp, class _Alloc> bool std::operator<(const std::vector<_Tp, _Alloc>&, const std::vector<_Tp, _Alloc>&) operator<(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) ^ /usr/include/c++/4.8/bits/stl_vector.h:1421:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/4.8/algorithm:62:0, from roboti1.cpp:2: /usr/include/c++/4.8/bits/stl_algo.h:85:16: note: 'Cell' is not derived from 'const std::vector<_Tp, _Alloc>' if (*__a < *__b) ^ In file included from /usr/include/c++/4.8/tuple:39:0, from /usr/include/c++/4.8/functional:55, from /usr/include/c++/4.8/bits/stl_algo.h:66, from /usr/include/c++/4.8/algorithm:62, from roboti1.cpp:2: /usr/include/c++/4.8/array:238:5: note: template<class _Tp, unsigned int _Nm> bool std::operator<(const std::array<_Tp, _Nm>&, const std::array<_Tp, _Nm>&) operator<(const array<_Tp, _Nm>& __a, const array<_Tp, _Nm>& __b) ^ /usr/include/c++/4.8/array:238:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/4.8/algorithm:62:0, from roboti1.cpp:2: /usr/include/c++/4.8/bits/stl_algo.h:85:16: note: 'Cell' is not derived from 'const std::array<_Tp, _Nm>' if (*__a < *__b) ^ In file included from /usr/include/c++/4.8/functional:55:0, from /usr/include/c++/4.8/bits/stl_algo.h:66, from /usr/include/c++/4.8/algorithm:62, from roboti1.cpp:2: /usr/include/c++/4.8/tuple:824:5: note: template<class ... _TElements, class ... _UElements> constexpr bool std::operator<(const std::tuple<_Elements ...>&, const std::tuple<_Elements ...>&) operator<(const tuple<_TElements...>& __t, ^ /usr/include/c++/4.8/tuple:824:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/4.8/algorithm:62:0, from roboti1.cpp:2: /usr/include/c++/4.8/bits/stl_algo.h:85:16: note: 'Cell' is not derived from 'const std::tuple<_Elements ...>' if (*__a < *__b) ^ /usr/include/c++/4.8/bits/stl_algo.h:87:13: error: no match for 'operator<' (operand types are 'Cell' and 'Cell') if (*__b < *__c) ^ /usr/include/c++/4.8/bits/stl_algo.h:87:13: note: candidates are: In file included from /usr/include/c++/4.8/bits/stl_algobase.h:64:0, from /usr/include/c++/4.8/bits/char_traits.h:39, from /usr/include/c++/4.8/ios:40, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from roboti1.cpp:1: /usr/include/c++/4.8/bits/stl_pair.h:220:5: note: template<class _T1, class _T2> constexpr bool std::operator<(const std::pair<_T1, _T2>&, const std::pair<_T1, _T2>&) operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) ^ /usr/include/c++/4.8/bits/stl_pair.h:220:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/4.8/algorithm:62:0, from roboti1.cpp:2: /usr/include/c++/4.8/bits/stl_algo.h:87:13: note: 'Cell' is not derived from 'const std::pair<_T1, _T2>' if (*__b < *__c) ^ In file included from /usr/include/c++/4.8/bits/stl_algobase.h:67:0, from /usr/include/c++/4.8/bits/char_traits.h:39, from /usr/include/c++/4.8/ios:40, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from roboti1.cpp:1: /usr/include/c++/4.8/bits/stl_iterator.h:297:5: note: template<class _Iterator> bool std::operator<(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_Iterator>&) operator<(const reverse_iterator<_Iterator>& __x, ^ /usr/include/c++/4.8/bits/stl_iterator.h:297:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/4.8/algorithm:62:0, from roboti1.cpp:2: /usr/include/c++/4.8/bits/stl_algo.h:87:13: note: 'Cell' is not derived from 'const std::reverse_iterator<_Iterator>' if (*__b < *__c) ^ In file included from /usr/include/c++/4.8/bits/stl_algobase.h:67:0, from /usr/include/c++/4.8/bits/char_traits.h:39, from /usr/include/c++/4.8/ios:40, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from roboti1.cpp:1: /usr/include/c++/4.8/bits/stl_iterator.h:347:5: note: template<class _IteratorL, class _IteratorR> bool std::operator<(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_IteratorR>&) operator<(const reverse_iterator<_IteratorL>& __x, ^ /usr/include/c++/4.8/bits/stl_iterator.h:347:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/4.8/algorithm:62:0, from roboti1.cpp:2: /usr/include/c++/4.8/bits/stl_algo.h:87:13: note: 'Cell' is not derived from 'const std::reverse_iterator<_Iterator>' if (*__b < *__c) ^ In file included from /usr/include/c++/4.8/bits/stl_algobase.h:67:0, from /usr/include/c++/4.8/bits/char_traits.h:39, from /usr/include/c++/4.8/ios:40, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from roboti1.cpp:1: /usr/include/c++/4.8/bits/stl_iterator.h:1055:5: note: template<class _IteratorL, class _IteratorR> bool std::operator<(const std::move_iterator<_Iterator>&, const std::move_iterator<_IteratorR>&) operator<(const move_iterator<_IteratorL>& __x, ^ /usr/include/c++/4.8/bits/stl_iterator.h:1055:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/4.8/algorithm:62:0, from roboti1.cpp:2: /usr/include/c++/4.8/bits/stl_algo.h:87:13: note: 'Cell' is not derived from 'const std::move_iterator<_Iterator>' if (*__b < *__c) ^ In file included from /usr/include/c++/4.8/bits/stl_algobase.h:67:0, from /usr/include/c++/4.8/bits/char_traits.h:39, from /usr/include/c++/4.8/ios:40, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from roboti1.cpp:1: /usr/include/c++/4.8/bits/stl_iterator.h:1061:5: note: template<class _Iterator> bool std::operator<(const std::move_iterator<_Iterator>&, const std::move_iterator<_Iterator>&) operator<(const move_iterator<_Iterator>& __x, ^ /usr/include/c++/4.8/bits/stl_iterator.h:1061:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/4.8/algorithm:62:0, from roboti1.cpp:2: /usr/include/c++/4.8/bits/stl_algo.h:87:13: note: 'Cell' is not derived from 'const std::move_iterator<_Iterator>' if (*__b < *__c) ^ In file included from /usr/include/c++/4.8/string:52:0, from /usr/include/c++/4.8/bits/locale_classes.h:40, from /usr/include/c++/4.8/bits/ios_base.h:41, from /usr/include/c++/4.8/ios:42, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from roboti1.cpp:1: /usr/include/c++/4.8/bits/basic_string.h:2569:5: note: template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const std::basic_string<_CharT, _Traits, _Alloc>&, const std::basic_string<_CharT, _Traits, _Alloc>&) operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs, ^ /usr/include/c++/4.8/bits/basic_string.h:2569:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/4.8/algorithm:62:0, from roboti1.cpp:2: /usr/include/c++/4.8/bits/stl_algo.h:87:13: note: 'Cell' is not derived from 'const std::basic_string<_CharT, _Traits, _Alloc>' if (*__b < *__c) ^ In file included from /usr/include/c++/4.8/string:52:0, from /usr/include/c++/4.8/bits/locale_classes.h:40, from /usr/include/c++/4.8/bits/ios_base.h:41, from /usr/include/c++/4.8/ios:42, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from roboti1.cpp:1: /usr/include/c++/4.8/bits/basic_string.h:2581:5: note: template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const std::basic_string<_CharT, _Traits, _Alloc>&, const _CharT*) operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs, ^ /usr/include/c++/4.8/bits/basic_string.h:2581:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/4.8/algorithm:62:0, from roboti1.cpp:2: /usr/include/c++/4.8/bits/stl_algo.h:87:13: note: 'Cell' is not derived from 'const std::basic_string<_CharT, _Traits, _Alloc>' if (*__b < *__c) ^ In file included from /usr/include/c++/4.8/string:52:0, from /usr/include/c++/4.8/bits/locale_classes.h:40, from /usr/include/c++/4.8/bits/ios_base.h:41, from /usr/include/c++/4.8/ios:42, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from roboti1.cpp:1: /usr/include/c++/4.8/bits/basic_string.h:2593:5: note: template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const _CharT*, const std::basic_string<_CharT, _Traits, _Alloc>&) operator<(const _CharT* __lhs, ^ /usr/include/c++/4.8/bits/basic_string.h:2593:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/4.8/algorithm:62:0, from roboti1.cpp:2: /usr/include/c++/4.8/bits/stl_algo.h:87:13: note: mismatched types 'const _CharT*' and 'Cell' if (*__b < *__c) ^ In file included from /usr/include/c++/4.8/vector:64:0, from /usr/include/c++/4.8/bits/random.h:34, from /usr/include/c++/4.8/random:50, from /usr/include/c++/4.8/bits/stl_algo.h:65, from /usr/include/c++/4.8/algorithm:62, from roboti1.cpp:2: /usr/include/c++/4.8/bits/stl_vector.h:1421:5: note: template<class _Tp, class _Alloc> bool std::operator<(const std::vector<_Tp, _Alloc>&, const std::vector<_Tp, _Alloc>&) operator<(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) ^ /usr/include/c++/4.8/bits/stl_vector.h:1421:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/4.8/algorithm:62:0, from roboti1.cpp:2: /usr/include/c++/4.8/bits/stl_algo.h:87:13: note: 'Cell' is not derived from 'const std::vector<_Tp, _Alloc>' if (*__b < *__c) ^ In file included from /usr/include/c++/4.8/tuple:39:0, from /usr/include/c++/4.8/functional:55, from /usr/include/c++/4.8/bits/stl_algo.h:66, from /usr/include/c++/4.8/algorithm:62, from roboti1.cpp:2: /usr/include/c++/4.8/array:238:5: note: template<class _Tp, unsigned int _Nm> bool std::operator<(const std::array<_Tp, _Nm>&, const std::array<_Tp, _Nm>&) operator<(const array<_Tp, _Nm>& __a, const array<_Tp, _Nm>& __b) ^ /usr/include/c++/4.8/array:238:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/4.8/algorithm:62:0, from roboti1.cpp:2: /usr/include/c++/4.8/bits/stl_algo.h:87:13: note: 'Cell' is not derived from 'const std::array<_Tp, _Nm>' if (*__b < *__c) ^ In file included from /usr/include/c++/4.8/functional:55:0, from /usr/include/c++/4.8/bits/stl_algo.h:66, from /usr/include/c++/4.8/algorithm:62, from roboti1.cpp:2: /usr/include/c++/4.8/tuple:824:5: note: template<class ... _TElements, class ... _UElements> constexpr bool std::operator<(const std::tuple<_Elements ...>&, const std::tuple<_Elements ...>&) operator<(const tuple<_TElements...>& __t, ^ /usr/include/c++/4.8/tuple:824:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/4.8/algorithm:62:0, from roboti1.cpp:2: /usr/include/c++/4.8/bits/stl_algo.h:87:13: note: 'Cell' is not derived from 'const std::tuple<_Elements ...>' if (*__b < *__c) ^ /usr/include/c++/4.8/bits/stl_algo.h:89:18: error: no match for 'operator<' (operand types are 'Cell' and 'Cell') else if (*__a < *__c) ^ /usr/include/c++/4.8/bits/stl_algo.h:89:18: note: candidates are: In file included from /usr/include/c++/4.8/bits/stl_algobase.h:64:0, from /usr/include/c++/4.8/bits/char_traits.h:39, from /usr/include/c++/4.8/ios:40, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from roboti1.cpp:1: /usr/include/c++/4.8/bits/stl_pair.h:220:5: note: template<class _T1, class _T2> constexpr bool std::operator<(const std::pair<_T1, _T2>&, const std::pair<_T1, _T2>&) operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) ^ /usr/include/c++/4.8/bits/stl_pair.h:220:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/4.8/algorithm:62:0, from roboti1.cpp:2: /usr/include/c++/4.8/bits/stl_algo.h:89:18: note: 'Cell' is not derived from 'const std::pair<_T1, _T2>' else if (*__a < *__c) ^ In file included from /usr/include/c++/4.8/bits/stl_algobase.h:67:0, from /usr/include/c++/4.8/bits/char_traits.h:39, from /usr/include/c++/4.8/ios:40, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from roboti1.cpp:1: /usr/include/c++/4.8/bits/stl_iterator.h:297:5: note: template<class _Iterator> bool std::operator<(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_Iterator>&) operator<(const reverse_iterator<_Iterator>& __x, ^ /usr/include/c++/4.8/bits/stl_iterator.h:297:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/4.8/algorithm:62:0, from roboti1.cpp:2: /usr/include/c++/4.8/bits/stl_algo.h:89:18: note: 'Cell' is not derived from 'const std::reverse_iterator<_Iterator>' else if (*__a < *__c) ^ In file included from /usr/include/c++/4.8/bits/stl_algobase.h:67:0, from /usr/include/c++/4.8/bits/char_traits.h:39, from /usr/include/c++/4.8/ios:40, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from roboti1.cpp:1: /usr/include/c++/4.8/bits/stl_iterator.h:347:5: note: template<class _IteratorL, class _IteratorR> bool std::operator<(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_IteratorR>&) operator<(const reverse_iterator<_IteratorL>& __x, ^ /usr/include/c++/4.8/bits/stl_iterator.h:347:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/4.8/algorithm:62:0, from roboti1.cpp:2: /usr/include/c++/4.8/bits/stl_algo.h:89:18: note: 'Cell' is not derived from 'const std::reverse_iterator<_Iterator>' else if (*__a < *__c) ^ In file included from /usr/include/c++/4.8/bits/stl_algobase.h:67:0, from /usr/include/c++/4.8/bits/char_traits.h:39, from /usr/include/c++/4.8/ios:40, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from roboti1.cpp:1: /usr/include/c++/4.8/bits/stl_iterator.h:1055:5: note: template<class _IteratorL, class _IteratorR> bool std::operator<(const std::move_iterator<_Iterator>&, const std::move_iterator<_IteratorR>&) operator<(const move_iterator<_IteratorL>& __x, ^ /usr/include/c++/4.8/bits/stl_iterator.h:1055:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/4.8/algorithm:62:0, from roboti1.cpp:2: /usr/include/c++/4.8/bits/stl_algo.h:89:18: note: 'Cell' is not derived from 'const std::move_iterator<_Iterator>' else if (*__a < *__c) ^ In file included from /usr/include/c++/4.8/bits/stl_algobase.h:67:0, from /usr/include/c++/4.8/bits/char_traits.h:39, from /usr/include/c++/4.8/ios:40, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from roboti1.cpp:1: /usr/include/c++/4.8/bits/stl_iterator.h:1061:5: note: template<class _Iterator> bool std::operator<(const std::move_iterator<_Iterator>&, const std::move_iterator<_Iterator>&) operator<(const move_iterator<_Iterator>& __x, ^ /usr/include/c++/4.8/bits/stl_iterator.h:1061:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/4.8/algorithm:62:0, from roboti1.cpp:2: /usr/include/c++/4.8/bits/stl_algo.h:89:18: note: 'Cell' is not derived from 'const std::move_iterator<_Iterator>' else if (*__a < *__c) ^ In file included from /usr/include/c++/4.8/string:52:0, from /usr/include/c++/4.8/bits/locale_classes.h:40, from /usr/include/c++/4.8/bits/ios_base.h:41, from /usr/include/c++/4.8/ios:42, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from roboti1.cpp:1: /usr/include/c++/4.8/bits/basic_string.h:2569:5: note: template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const std::basic_string<_CharT, _Traits, _Alloc>&, const std::basic_string<_CharT, _Traits, _Alloc>&) operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs, ^ /usr/include/c++/4.8/bits/basic_string.h:2569:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/4.8/algorithm:62:0, from roboti1.cpp:2: /usr/include/c++/4.8/bits/stl_algo.h:89:18: note: 'Cell' is not derived from 'const std::basic_string<_CharT, _Traits, _Alloc>' else if (*__a < *__c) ^ In file included from /usr/include/c++/4.8/string:52:0, from /usr/include/c++/4.8/bits/locale_classes.h:40, from /usr/include/c++/4.8/bits/ios_base.h:41, from /usr/include/c++/4.8/ios:42, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from roboti1.cpp:1: /usr/include/c++/4.8/bits/basic_string.h:2581:5: note: template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const std::basic_string<_CharT, _Traits, _Alloc>&, const _CharT*) operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs, ^ /usr/include/c++/4.8/bits/basic_string.h:2581:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/4.8/algorithm:62:0, from roboti1.cpp:2: /usr/include/c++/4.8/bits/stl_algo.h:89:18: note: 'Cell' is not derived from 'const std::basic_string<_CharT, _Traits, _Alloc>' else if (*__a < *__c) ^ In file included from /usr/include/c++/4.8/string:52:0, from /usr/include/c++/4.8/bits/locale_classes.h:40, from /usr/include/c++/4.8/bits/ios_base.h:41, from /usr/include/c++/4.8/ios:42, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from roboti1.cpp:1: /usr/include/c++/4.8/bits/basic_string.h:2593:5: note: template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const _CharT*, const std::basic_string<_CharT, _Traits, _Alloc>&) operator<(const _CharT* __lhs, ^ /usr/include/c++/4.8/bits/basic_string.h:2593:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/4.8/algorithm:62:0, from roboti1.cpp:2: /usr/include/c++/4.8/bits/stl_algo.h:89:18: note: mismatched types 'const _CharT*' and 'Cell' else if (*__a < *__c) ^ In file included from /usr/include/c++/4.8/vector:64:0, from /usr/include/c++/4.8/bits/random.h:34, from /usr/include/c++/4.8/random:50, from /usr/include/c++/4.8/bits/stl_algo.h:65, from /usr/include/c++/4.8/algorithm:62, from roboti1.cpp:2: /usr/include/c++/4.8/bits/stl_vector.h:1421:5: note: template<class _Tp, class _Alloc> bool std::operator<(const std::vector<_Tp, _Alloc>&, const std::vector<_Tp, _Alloc>&) operator<(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) ^ /usr/include/c++/4.8/bits/stl_vector.h:1421:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/4.8/algorithm:62:0, from roboti1.cpp:2: /usr/include/c++/4.8/bits/stl_algo.h:89:18: note: 'Cell' is not derived from 'const std::vector<_Tp, _Alloc>' else if (*__a < *__c) ^ In file included from /usr/include/c++/4.8/tuple:39:0, from /usr/include/c++/4.8/functional:55, from /usr/include/c++/4.8/bits/stl_algo.h:66, from /usr/include/c++/4.8/algorithm:62, from roboti1.cpp:2: /usr/include/c++/4.8/array:238:5: note: template<class _Tp, unsigned int _Nm> bool std::operator<(const std::array<_Tp, _Nm>&, const std::array<_Tp, _Nm>&) operator<(const array<_Tp, _Nm>& __a, const array<_Tp, _Nm>& __b) ^ /usr/include/c++/4.8/array:238:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/4.8/algorithm:62:0, from roboti1.cpp:2: /usr/include/c++/4.8/bits/stl_algo.h:89:18: note: 'Cell' is not derived from 'const std::array<_Tp, _Nm>' else if (*__a < *__c) ^ In file included from /usr/include/c++/4.8/functional:55:0, from /usr/include/c++/4.8/bits/stl_algo.h:66, from /usr/include/c++/4.8/algorithm:62, from roboti1.cpp:2: /usr/include/c++/4.8/tuple:824:5: note: template<class ... _TElements, class ... _UElements> constexpr bool std::operator<(const std::tuple<_Elements ...>&, const std::tuple<_Elements ...>&) operator<(const tuple<_TElements...>& __t, ^ /usr/include/c++/4.8/tuple:824:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/4.8/algorithm:62:0, from roboti1.cpp:2: /usr/include/c++/4.8/bits/stl_algo.h:89:18: note: 'Cell' is not derived from 'const std::tuple<_Elements ...>' else if (*__a < *__c) ^ /usr/include/c++/4.8/bits/stl_algo.h:94:21: error: no match for 'operator<' (operand types are 'Cell' and 'Cell') else if (*__a < *__c) ^ /usr/include/c++/4.8/bits/stl_algo.h:94:21: note: candidates are: In file included from /usr/include/c++/4.8/bits/stl_algobase.h:64:0, from /usr/include/c++/4.8/bits/char_traits.h:39, from /usr/include/c++/4.8/ios:40, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from roboti1.cpp:1: /usr/include/c++/4.8/bits/stl_pair.h:220:5: note: template<class _T1, class _T2> constexpr bool std::operator<(const std::pair<_T1, _T2>&, const std::pair<_T1, _T2>&) operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) ^ /usr/include/c++/4.8/bits/stl_pair.h:220:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/4.8/algorithm:62:0, from roboti1.cpp:2: /usr/include/c++/4.8/bits/stl_algo.h:94:21: note: 'Cell' is not derived from 'const std::pair<_T1, _T2>' else if (*__a < *__c) ^ In file included from /usr/include/c++/4.8/bits/stl_algobase.h:67:0, from /usr/include/c++/4.8/bits/char_traits.h:39, from /usr/include/c++/4.8/ios:40, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from roboti1.cpp:1: /usr/include/c++/4.8/bits/stl_iterator.h:297:5: note: template<class _Iterator> bool std::operator<(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_Iterator>&) operator<(const reverse_iterator<_Iterator>& __x, ^ /usr/include/c++/4.8/bits/stl_iterator.h:297:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/4.8/algorithm:62:0, from roboti1.cpp:2: /usr/include/c++/4.8/bits/stl_algo.h:94:21: note: 'Cell' is not derived from 'const std::reverse_iterator<_Iterator>' else if (*__a < *__c) ^ In file included from /usr/include/c++/4.8/bits/stl_algobase.h:67:0, from /usr/include/c++/4.8/bits/char_traits.h:39, from /usr/include/c++/4.8/ios:40, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from roboti1.cpp:1: /usr/include/c++/4.8/bits/stl_iterator.h:347:5: note: template<class _IteratorL, class _IteratorR> bool std::operator<(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_IteratorR>&) operator<(const reverse_iterator<_IteratorL>& __x, ^ /usr/include/c++/4.8/bits/stl_iterator.h:347:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/4.8/algorithm:62:0, from roboti1.cpp:2: /usr/include/c++/4.8/bits/stl_algo.h:94:21: note: 'Cell' is not derived from 'const std::reverse_iterator<_Iterator>' else if (*__a < *__c) ^ In file included from /usr/include/c++/4.8/bits/stl_algobase.h:67:0, from /usr/include/c++/4.8/bits/char_traits.h:39, from /usr/include/c++/4.8/ios:40, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from roboti1.cpp:1: /usr/include/c++/4.8/bits/stl_iterator.h:1055:5: note: template<class _IteratorL, class _IteratorR> bool std::operator<(const std::move_iterator<_Iterator>&, const std::move_iterator<_IteratorR>&) operator<(const move_iterator<_IteratorL>& __x, ^ /usr/include/c++/4.8/bits/stl_iterator.h:1055:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/4.8/algorithm:62:0, from roboti1.cpp:2: /usr/include/c++/4.8/bits/stl_algo.h:94:21: note: 'Cell' is not derived from 'const std::move_iterator<_Iterator>' else if (*__a < *__c) ^ In file included from /usr/include/c++/4.8/bits/stl_algobase.h:67:0, from /usr/include/c++/4.8/bits/char_traits.h:39, from /usr/include/c++/4.8/ios:40, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from roboti1.cpp:1: /usr/include/c++/4.8/bits/stl_iterator.h:1061:5: note: template<class _Iterator> bool std::operator<(const std::move_iterator<_Iterator>&, const std::move_iterator<_Iterator>&) operator<(const move_iterator<_Iterator>& __x, ^ /usr/include/c++/4.8/bits/stl_iterator.h:1061:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/4.8/algorithm:62:0, from roboti1.cpp:2: /usr/include/c++/4.8/bits/stl_algo.h:94:21: note: 'Cell' is not derived from 'const std::move_iterator<_Iterator>' else if (*__a < *__c) ^ In file included from /usr/include/c++/4.8/string:52:0, from /usr/include/c++/4.8/bits/locale_classes.h:40, from /usr/include/c++/4.8/bits/ios_base.h:41, from /usr/include/c++/4.8/ios:42, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from roboti1.cpp:1: /usr/include/c++/4.8/bits/basic_string.h:2569:5: note: template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const std::basic_string<_CharT, _Traits, _Alloc>&, const std::basic_string<_CharT, _Traits, _Alloc>&) operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs, ^ /usr/include/c++/4.8/bits/basic_string.h:2569:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/4.8/algorithm:62:0, from roboti1.cpp:2: /usr/include/c++/4.8/bits/stl_algo.h:94:21: note: 'Cell' is not derived from 'const std::basic_string<_CharT, _Traits, _Alloc>' else if (*__a < *__c) ^ In file included from /usr/include/c++/4.8/string:52:0, from /usr/include/c++/4.8/bits/locale_classes.h:40, from /usr/include/c++/4.8/bits/ios_base.h:41, from /usr/include/c++/4.8/ios:42, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from roboti1.cpp:1: /usr/include/c++/4.8/bits/basic_string.h:2581:5: note: template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const std::basic_string<_CharT, _Traits, _Alloc>&, const _CharT*) operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs, ^ /usr/include/c++/4.8/bits/basic_string.h:2581:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/4.8/algorithm:62:0, from roboti1.cpp:2: /usr/include/c++/4.8/bits/stl_algo.h:94:21: note: 'Cell' is not derived from 'const std::basic_string<_CharT, _Traits, _Alloc>' else if (*__a < *__c) ^ In file included from /usr/include/c++/4.8/string:52:0, from /usr/include/c++/4.8/bits/locale_classes.h:40, from /usr/include/c++/4.8/bits/ios_base.h:41, from /usr/include/c++/4.8/ios:42, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from roboti1.cpp:1: /usr/include/c++/4.8/bits/basic_string.h:2593:5: note: template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const _CharT*, const std::basic_string<_CharT, _Traits, _Alloc>&) operator<(const _CharT* __lhs, ^ /usr/include/c++/4.8/bits/basic_string.h:2593:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/4.8/algorithm:62:0, from roboti1.cpp:2: /usr/include/c++/4.8/bits/stl_algo.h:94:21: note: mismatched types 'const _CharT*' and 'Cell' else if (*__a < *__c) ^ In file included from /usr/include/c++/4.8/vector:64:0, from /usr/include/c++/4.8/bits/random.h:34, from /usr/include/c++/4.8/random:50, from /usr/include/c++/4.8/bits/stl_algo.h:65, from /usr/include/c++/4.8/algorithm:62, from roboti1.cpp:2: /usr/include/c++/4.8/bits/stl_vector.h:1421:5: note: template<class _Tp, class _Alloc> bool std::operator<(const std::vector<_Tp, _Alloc>&, const std::vector<_Tp, _Alloc>&) operator<(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) ^ /usr/include/c++/4.8/bits/stl_vector.h:1421:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/4.8/algorithm:62:0, from roboti1.cpp:2: /usr/include/c++/4.8/bits/stl_algo.h:94:21: note: 'Cell' is not derived from 'const std::vector<_Tp, _Alloc>' else if (*__a < *__c) ^ In file included from /usr/include/c++/4.8/tuple:39:0, from /usr/include/c++/4.8/functional:55, from /usr/include/c++/4.8/bits/stl_algo.h:66, from /usr/include/c++/4.8/algorithm:62, from roboti1.cpp:2: /usr/include/c++/4.8/array:238:5: note: template<class _Tp, unsigned int _Nm> bool std::operator<(const std::array<_Tp, _Nm>&, const std::array<_Tp, _Nm>&) operator<(const array<_Tp, _Nm>& __a, const array<_Tp, _Nm>& __b) ^ /usr/include/c++/4.8/array:238:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/4.8/algorithm:62:0, from roboti1.cpp:2: /usr/include/c++/4.8/bits/stl_algo.h:94:21: note: 'Cell' is not derived from 'const std::array<_Tp, _Nm>' else if (*__a < *__c) ^ In file included from /usr/include/c++/4.8/functional:55:0, from /usr/include/c++/4.8/bits/stl_algo.h:66, from /usr/include/c++/4.8/algorithm:62, from roboti1.cpp:2: /usr/include/c++
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Roboti1 face parte din prima categorie. Soluția propusă de tine va fi evaluată astfel:
Suma punctajelor acordate pe testele utilizate pentru verificare este 100. Astfel, soluția ta poate obține cel mult 100 de puncte, caz în care se poate considera corectă.