Borderou de evaluare (job #544983)

Utilizator avatar stefan_s Stefan Sirghii stefan_s IP ascuns
Problemă Dispozitiv (Lot Juniori) Compilator cpp
Rundă Arhiva de probleme Status evaluat
Dată 19 mar. 2020 12:19:26 Scor 0

Raport evaluator

Eroare de compilare: user.cpp:11:28: error: ‘Point’ does not name a type user.cpp:11: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:12:22: error: request for member ‘x’ in ‘p’, which is of non-class type ‘const int’ user.cpp:12:35: error: request for member ‘x’ in ‘p’, which is of non-class type ‘const int’ user.cpp:12: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 /usr/include/c++/4.6/i686-linux-gnu/./bits/stdc++.h:64, from user.cpp:1: /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:37: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:11:10: note: bool Entry::operator<(const int&) const user.cpp:11:10: note: no known conversion for argument 1 from ‘Entry’ to ‘const int&’ /usr/include/c++/4.6/bits/regex.h:1366:5: note: template<class _Bi_iter> bool std::operator<(const std::sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&) /usr/include/c++/4.6/bits/regex.h:1286:5: note: template<class _Bi_iter> bool std::operator<(const typename std::iterator_traits<_Iter>::value_type&, const std::sub_match<_BiIter>&) /usr/include/c++/4.6/bits/regex.h:1209:5: note: template<class _Bi_iter> bool std::operator<(const std::sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*) /usr/include/c++/4.6/bits/regex.h:1135:5: note: template<class _Bi_iter> bool std::operator<(const typename std::iterator_traits<_Iter>::value_type*, const std::sub_match<_BiIter>&) /usr/include/c++/4.6/bits/regex.h:1053:5: note: template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::operator<(const std::sub_match<_Bi_iter>&, const std::basic_string<typename std::iterator_traits<_II1>::value_type, _Ch_traits, _Ch_alloc>&) /usr/include/c++/4.6/bits/regex.h:971:5: note: template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::operator<(const std::basic_string<typename std::iterator_traits<_II1>::value_type, _Ch_traits, _Ch_alloc>&, const std::sub_match<_Bi_iter>&) /usr/include/c++/4.6/bits/regex.h:894:5: note: template<class _BiIter> bool std::operator<(const std::sub_match<_BiIter>&, const std::sub_match<_BiIter>&) /usr/include/c++/4.6/bits/forward_list.h:1260:5: note: template<class _Tp, class _Alloc> bool std::operator<(const std::forward_list<_Tp, _Alloc>&, const std::forward_list<_Tp, _Alloc>&) /usr/include/c++/4.6/system_error:251:3: note: bool std::operator<(const std::error_condition&, const std::error_condition&) /usr/include/c++/4.6/system_error:251:3: note: no known conversion for argument 1 from ‘Entry’ to ‘const std::error_condition&’ /usr/include/c++/4.6/system_error:177:3: note: bool std::operator<(const std::error_code&, const std::error_code&) /usr/include/c++/4.6/system_error:177:3: note: no known conversion for argument 1 from ‘Entry’ to ‘const std::error_code&’ /usr/include/c++/4.6/array:210:5: note: template<class _Tp, unsigned int _Nm> bool std::operator<(const std::array<_Tp, _Nm>&, const std::array<_Tp, _Nm>&) /usr/include/c++/4.6/valarray:1111:1: note: template<class _Tp> std::_Expr<std::_BinClos<std::__less, std::_Constant, std::_ValArray, _Tp, _Tp>, typename std::__fun<std::__less, _Tp>::result_type> std::operator<(const _Tp&, const std::valarray<_Tp>&) /usr/include/c++/4.6/valarray:1111:1: note: template<class _Tp> std::_Expr<std::_BinClos<std::__less, std::_ValArray, std::_Constant, _Tp, _Tp>, typename std::__fun<std::__less, _Tp>::result_type> std::operator<(const std::valarray<_Tp>&, const _Tp&) /usr/include/c++/4.6/valarray:1111:1: note: template<class _Tp> std::_Expr<std::_BinClos<std::__less, std::_ValArray, std::_ValArray, _Tp, _Tp>, typename std::__fun<std::__less, _Tp>::result_type> std::operator<(const std::valarray<_Tp>&, const std::valarray<_Tp>&) /usr/include/c++/4.6/bits/valarray_after.h:417:5: note: template<class _Dom> std::_Expr<std::_BinClos<std::__less, std::_ValArray, std::_Expr, typename _Dom::value_type, _Dom>, typename std::__fun<std::__less, typename _Dom::value_type>::result_type> std::operator<(const std::valarray<typename _Dom::value_type>&, const std::_Expr<_Dom, typename _Dom::value_type>&) /usr/include/c++/4.6/bits/valarray_after.h:417:5: note: template<class _Dom> std::_Expr<std::_BinClos<std::__less, std::_Expr, std::_ValArray, _Dom, typename _Dom::value_type>, typename std::__fun<std::__less, typename _Dom::value_type>::result_type> std::operator<(const std::_Expr<_Dom, typename _Dom::value_type>&, const std::valarray<typename _Dom::value_type>&) /usr/include/c++/4.6/bits/valarray_after.h:417:5: note: template<class _Dom> std::_Expr<std::_BinClos<std::__less, std::_Constant, std::_Expr, typename _Dom::value_type, _Dom>, typename std::__fun<std::__less, typename _Dom::value_type>::result_type> std::operator<(const typename _Dom::value_type&, const std::_Expr<_Dom, typename _Dom::value_type>&) /usr/include/c++/4.6/bits/valarray_after.h:417:5: note: template<class _Dom> std::_Expr<std::_BinClos<std::__less, std::_Expr, std::_Constant, _Dom, typename _Dom::value_type>, typename std::__fun<std::__less, typename _Dom::value_type>::result_type> std::operator<(const std::_Expr<_Dom, typename _Dom::value_type>&, const typename _Dom::value_type&) /usr/include/c++/4.6/bits/valarray_after.h:417:5: note: template<class _Dom1, class _Dom2> std::_Expr<std::_BinClos<std::__less, std::_Expr, std::_Expr, _Dom1, _Dom2>, typename std::__fun<std::__less, typename _Dom1::value_type>::result_type> std::operator<(const std::_Expr<_Dom1, typename _Dom1::value_type>&, const std::_Expr<_Dom2, typename _Dom2::value_type>&) /usr/include/c++/4.6/bits/stl_stack.h:259:5: note: template<class _Tp, class _Seq> bool std::operator<(const std::stack<_Tp, _Seq>&, const std::stack<_Tp, _Seq>&) /usr/include/c++/4.6/bits/stl_multiset.h:696:5: note: template<class _Key, class _Compare, class _Alloc> bool std::operator<(const std::multiset<_Key, _Compare, _Alloc>&, const std::multiset<_Key, _Compare, _Alloc>&) /usr/include/c++/4.6/bits/stl_set.h:713:5: note: template<class _Key, class _Compare, class _Alloc> bool std::operator<(const std::set<_Key, _Compare, _Alloc>&, const std::set<_Key, _Compare, _Alloc>&) /usr/include/c++/4.6/bits/stl_queue.h:284:5: note: template<class _Tp, class _Seq> bool std::operator<(const std::queue<_Tp, _Seq>&, const std::queue<_Tp, _Seq>&) /usr/include/c++/4.6/bits/shared_ptr.h:358:5: note: template<class _Tp1, class _Tp2> bool std::operator<(const std::shared_ptr<_Tp1>&, const std::shared_ptr<_Tp2>&) /usr/include/c++/4.6/bits/shared_ptr_base.h:1086:5: note: template<class _Tp1, class _Tp2, __gnu_cxx::_Lock_policy _Lp> bool std::operator<(const std::__shared_ptr<_Tp1, _Lp>&, const std::__shared_ptr<_Tp2, _Lp>&) /usr/include/c++/4.6/bits/unique_ptr.h:468:5: note: template<class _Tp, class _Dp, class _Up, class _Ep> bool std::operator<(const std::unique_ptr<_Tp, _Dp>&, const std::unique_ptr<_Up, _Ep>&) /usr/include/c++/4.6/bits/stl_multimap.h:817:5: note: template<class _Key, class _Tp, class _Compare, class _Alloc> bool std::operator<(const std::multimap<_Key, _Tp, _Compare, _Alloc>&, const std::multimap<_Key, _Tp, _Compare, _Alloc>&) /usr/include/c++/4.6/bits/stl_map.h:899:5: note: template<class _Key, class _Tp, class _Compare, class _Alloc> bool std::operator<(const std::map<_Key, _Tp, _Compare, _Alloc>&, const std::map<_Key, _Tp, _Compare, _Alloc>&) /usr/include/c++/4.6/bits/stl_tree.h:866:5: note: template<class _Key, class _Val, class _KeyOfValue, class _Compare, class _Alloc> bool std::operator<(const std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>&, const std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>&) /usr/include/c++/4.6/bits/stl_list.h:1593:5: note: template<class _Tp, class _Alloc> bool std::operator<(const std::list<_Tp, _Alloc>&, const std::list<_Tp, _Alloc>&) /usr/include/c++/4.6/bits/stl_deque.h:1935:5: note: template<class _Tp, class _Alloc> bool std::operator<(const std::deque<_Tp, _Alloc>&, const std::deque<_Tp, _Alloc>&)