Borderou de evaluare (job #545693)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Dispozitiv (Lot Juniori) | Compilator | cpp |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 19 mar. 2020 14:23:42 | Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:19:28: error: ‘Point’ does not name a type
user.cpp:19:35: error: ISO C++ forbids declaration of ‘p’ with no type [-fpermissive]
user.cpp: In member function ‘bool Entry::operator<(const int&) const’:
user.cpp:20:22: error: request for member ‘x’ in ‘p’, which is of non-class type ‘const int’
user.cpp:20:35: error: request for member ‘x’ in ‘p’, which is of non-class type ‘const int’
user.cpp:20:48: error: request for member ‘sgn’ in ‘p’, which is of non-class type ‘const int’
In file included from /usr/include/c++/4.6/algorithm:63:0,
from user.cpp:9:
/usr/include/c++/4.6/bits/stl_algo.h: In function ‘void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<Entry*, std::vector<Entry> >]’:
/usr/include/c++/4.6/bits/stl_algo.h:2181:4: instantiated from ‘void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<Entry*, std::vector<Entry> >]’
/usr/include/c++/4.6/bits/stl_algo.h:5409:4: instantiated from ‘void std::sort(_RAIter, _RAIter) [with _RAIter = __gnu_cxx::__normal_iterator<Entry*, std::vector<Entry> >]’
user.cpp:45:28: instantiated from here
/usr/include/c++/4.6/bits/stl_algo.h:2107:4: error: no match for ‘operator<’ in ‘__i.__gnu_cxx::__normal_iterator<_Iterator, _Container>::operator* [with _Iterator = Entry*, _Container = std::vector<Entry>, __gnu_cxx::__normal_iterator<_Iterator, _Container>::reference = Entry&]() < __first.__gnu_cxx::__normal_iterator<_Iterator, _Container>::operator* [with _Iterator = Entry*, _Container = std::vector<Entry>, __gnu_cxx::__normal_iterator<_Iterator, _Container>::reference = Entry&]()’
/usr/include/c++/4.6/bits/stl_algo.h:2107:4: note: candidates are:
user.cpp:19:10: note: bool Entry::operator<(const int&) const
user.cpp:19:10: note: no known conversion for argument 1 from ‘Entry’ to ‘const int&’
/usr/include/c++/4.6/bits/stl_pair.h:207:5: note: template<class _T1, class _T2> constexpr bool std::operator<(const std::pair<_T1, _T2>&, const std::pair<_T1, _T2>&)
/usr/include/c++/4.6/bits/stl_iterator.h:291:5: note: template<class _Iterator> bool std::operator<(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_Iterator>&)
/usr/include/c++/4.6/bits/stl_iterator.h:341:5: note: template<class _IteratorL, class _IteratorR> bool std::operator<(const std::reverse_iterator<_IteratorL>&, const std::reverse_iterator<_IteratorR>&)
/usr/include/c++/4.6/bits/stl_iterator.h:1049:5: note: template<class _IteratorL, class _IteratorR> bool std::operator<(const std::move_iterator<_IteratorL>&, const std::move_iterator<_IteratorR>&)
/usr/include/c++/4.6/bits/stl_iterator.h:1055:5: note: template<class _Iterator> bool std::operator<(const std::move_iterator<_Iterator>&, const std::move_iterator<_Iterator>&)
/usr/include/c++/4.6/bits/basic_string.h:2510: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>&)
/usr/include/c++/4.6/bits/basic_string.h:2522:5: note: template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const std::basic_string<_CharT, _Traits, _Alloc>&, const _CharT*)
/usr/include/c++/4.6/bits/basic_string.h:2534:5: note: template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const _CharT*, const std::basic_string<_CharT, _Traits, _Alloc>&)
/usr/include/c++/4.6/bits/stl_vector.h:1290:5: note: template<class _Tp, class _Alloc> bool std::operator<(const std::vector<_Tp, _Alloc>&, const std::vector<_Tp, _Alloc>&)
/usr/include/c++/4.6/tuple:586:5: note: template<class ... _TElements, class ... _UElements> bool std::operator<(const std::tuple<_TElements ...>&, const std::tuple<_Elements ...>&)
/usr/include/c++/4.6/bits/stl_algo.h: In function ‘void std::__heap_select(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<Entry*, std::vector<Entry> >]’:
/usr/include/c++/4.6/bits/stl_algo.h:5254:7: instantiated from ‘void std::partial_sort(_RAIter, _RAIter, _RAIter) [with _RAIter = __gnu_cxx::__normal_iterator<Entry*, std::vector<Entry> >]’
/usr/include/c++/4.6/bits/stl_algo.h:2279:8: instantiated from ‘void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<Entry*, std::vector<Entry> >, _Size = int]’
/usr/include/c++/4.6/bits/stl_algo.h:5407:4: instantiated from ‘void std::sort(_RAIter, _RAIter) [with _RAIter = __gnu_cxx::__normal_iterator<Entry*, std::vector<Entry> >]’
user.cpp:45:28: instantiated from here
/usr/include/c++/4.6/bits/stl_algo.h:1905:2: error: no match for ‘operator<’ in ‘__i.__gnu_cxx::__normal_iterator<_Iterator, _Container>::operator* [with _Iterator = Entry*, _Container = std::vector<Entry>, __gnu_cxx::__normal_iterator<_Iterator, _Container>::reference = Entry&]() < __first.__gnu_cxx::__normal_iterator<_Iterator, _Container>::operator* [with _Iterator = Entry*, _Container = std::vector<Entry>, __gnu_cxx::__normal_iterator<_Iterator, _Container>::reference = Entry&]()’
/usr/include/c++/4.6/bits/stl_algo.h:1905:2: note: candidates are:
user.cpp:19:10: note: bool Entry::operator<(const int&) const
user.cpp:19:10: note: no known conversion for argument 1 from ‘Entry’ to ‘const int&’
/usr/include/c++/4.6/bits/stl_pair.h:207:5: note: template<class _T1, class _T2> constexpr bool std::operator<(const std::pair<_T1, _T2>&, const std::pair<_T1, _T2>&)
/usr/include/c++/4.6/bits/stl_iterator.h:291:5: note: template<class _Iterator> bool std::operator<(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_Iterator>&)
/usr/include/c++/4.6/bits/stl_iterator.h:341:5: note: template<class _IteratorL, class _IteratorR> bool std::operator<(const std::reverse_iterator<_IteratorL>&, const std::reverse_iterator<_IteratorR>&)
/usr/include/c++/4.6/bits/stl_iterator.h:1049:5: note: template<class _IteratorL, class _IteratorR> bool std::operator<(const std::move_iterator<_IteratorL>&, const std::move_iterator<_IteratorR>&)
/usr/include/c++/4.6/bits/stl_iterator.h:1055:5: note: template<class _Iterator> bool std::operator<(const std::move_iterator<_Iterator>&, const std::move_iterator<_Iterator>&)
/usr/include/c++/4.6/bits/basic_string.h:2510: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>&)
/usr/include/c++/4.6/bits/basic_string.h:2522:5: note: template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const std::basic_string<_CharT, _Traits, _Alloc>&, const _CharT*)
/usr/include/c++/4.6/bits/basic_string.h:2534:5: note: template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const _CharT*, const std::basic_string<_CharT, _Traits, _Alloc>&)
/usr/include/c++/4.6/bits/stl_vector.h:1290:5: note: template<class _Tp, class _Alloc> bool std::operator<(const std::vector<_Tp, _Alloc>&, const std::vector<_Tp, _Alloc>&)
/usr/include/c++/4.6/tuple:586:5: note: template<class ... _TElements, class ... _UElements> bool std::operator<(const std::tuple<_TElements ...>&, const std::tuple<_Elements ...>&)
/usr/include/c++/4.6/bits/stl_algo.h: In function ‘void std::__move_median_first(_Iterator, _Iterator, _Iterator) [with _Iterator = __gnu_cxx::__normal_iterator<Entry*, std::vector<Entry> >]’:
/usr/include/c++/4.6/bits/stl_algo.h:2252:7: instantiated from ‘_RandomAccessIterator std::__unguarded_partition_pivot(_RandomAccessIterator, _RandomAccessIterator) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<Entry*, std::vector<Entry> >]’
/usr/include/c++/4.6/bits/stl_algo.h:2284:54: instantiated from ‘void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<Entry*, std::vector<Entry> >, _Size = int]’
/usr/include/c++/4.6/bits/stl_algo.h:5407:4: instantiated from ‘void std::sort(_RAIter, _RAIter) [with _RAIter = __gnu_cxx::__normal_iterator<Entry*, std::vector<Entry> >]’
user.cpp:45:28: instantiated from here