Borderou de evaluare (job #431086)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Zimeria ( Clasa a 10-a ) | Compilator | cpp |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 6 feb. 2019 14:35:51 | Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘bool cmp(std::string, std::string)’:
user.cpp:13:34: warning: array subscript has type ‘char’ [-Wchar-subscripts]
user.cpp:13:42: warning: array subscript has type ‘char’ [-Wchar-subscripts]
user.cpp:14:34: warning: array subscript has type ‘char’ [-Wchar-subscripts]
user.cpp:14:42: warning: array subscript has type ‘char’ [-Wchar-subscripts]
user.cpp:15:34: warning: array subscript has type ‘char’ [-Wchar-subscripts]
user.cpp:15:42: warning: array subscript has type ‘char’ [-Wchar-subscripts]
user.cpp:16:34: warning: array subscript has type ‘char’ [-Wchar-subscripts]
user.cpp:16:42: warning: array subscript has type ‘char’ [-Wchar-subscripts]
user.cpp:17:18: warning: array subscript has type ‘char’ [-Wchar-subscripts]
user.cpp:17:26: warning: array subscript has type ‘char’ [-Wchar-subscripts]
user.cpp: In function ‘void quickSort(int, int)’:
user.cpp:23:28: error: ‘arr’ was not declared in this scope
user.cpp: In function ‘int partition(int*, int, int)’:
user.cpp:41:34: error: no matching function for call to ‘swap(int*, int*)’
user.cpp:41:34: note: candidates are:
/usr/include/c++/4.6/bits/move.h:122:5: note: void std::swap(_Tp&, _Tp&) [with _Tp = int*]
/usr/include/c++/4.6/bits/move.h:122:5: note: no known conversion for argument 1 from ‘int*’ to ‘int*&’
/usr/include/c++/4.6/bits/move.h:136:5: note: template<class _Tp, unsigned int _Nm> void std::swap(_Tp (&)[_Nm], _Tp (&)[_Nm])
/usr/include/c++/4.6/bits/stl_pair.h:241:5: note: template<class _T1, class _T2> void std::swap(std::pair<_T1, _T2>&, std::pair<_T1, _T2>&)
/usr/include/c++/4.6/bits/basic_string.h:2658:5: note: template<class _CharT, class _Traits, class _Alloc> void std::swap(std::basic_string<_CharT, _Traits, _Alloc>&, std::basic_string<_CharT, _Traits, _Alloc>&)
/usr/include/c++/4.6/bits/stl_vector.h:1321:5: note: template<class _Tp, class _Alloc> void std::swap(std::vector<_Tp, _Alloc>&, std::vector<_Tp, _Alloc>&)
/usr/include/c++/4.6/tuple:745:5: note: template<class ... _Elements> void std::swap(std::tuple<_Elements ...>&, std::tuple<_Elements ...>&)
/usr/include/c++/4.6/functional:2263:5: note: template<class _Res, class ... _Args> void std::swap(std::function<_Res(_ArgTypes ...)>&, std::function<_Res(_ArgTypes ...)>&)
/usr/include/c++/4.6/bits/stl_deque.h:1971:5: note: template<class _Tp, class _Alloc> void std::swap(std::deque<_Tp, _Alloc>&, std::deque<_Tp, _Alloc>&)
/usr/include/c++/4.6/bits/stl_list.h:1624:5: note: template<class _Tp, class _Alloc> void std::swap(std::list<_Tp, _Alloc>&, std::list<_Tp, _Alloc>&)
/usr/include/c++/4.6/bits/stl_tree.h:904:5: note: template<class _Key, class _Val, class _KeyOfValue, class _Compare, class _Alloc> void std::swap(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>&, std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>&)
/usr/include/c++/4.6/bits/stl_map.h:934:5: note: template<class _Key, class _Tp, class _Compare, class _Alloc> void std::swap(std::map<_Key, _Tp, _Compare, _Alloc>&, std::map<_Key, _Tp, _Compare, _Alloc>&)
/usr/include/c++/4.6/bits/stl_multimap.h:852:5: note: template<class _Key, class _Tp, class _Compare, class _Alloc> void std::swap(std::multimap<_Key, _Tp, _Compare, _Alloc>&, std::multimap<_Key, _Tp, _Compare, _Alloc>&)
/usr/include/c++/4.6/bits/unique_ptr.h:427:5: note: template<class _Tp, class _Dp> void std::swap(std::unique_ptr<_Tp, _Dp>&, std::unique_ptr<_Tp, _Dp>&)
/usr/include/c++/4.6/bits/shared_ptr_base.h:1109:5: note: template<class _Tp, __gnu_cxx::_Lock_policy _Lp> void std::swap(std::__shared_ptr<_Tp, _Lp>&, std::__shared_ptr<_Tp, _Lp>&)
/usr/include/c++/4.6/bits/shared_ptr_base.h:1283:5: note: template<class _Tp, __gnu_cxx::_Lock_policy _Lp> void std::swap(std::__weak_ptr<_Tp, _Lp>&, std::__weak_ptr<_Tp, _Lp>&)
/usr/include/c++/4.6/bits/shared_ptr.h:368:5: note: template<class _Tp> void std::swap(std::shared_ptr<_Tp>&, std::shared_ptr<_Tp>&)
/usr/include/c++/4.6/bits/shared_ptr.h:454:5: note: template<class _Tp> void std::swap(std::weak_ptr<_Tp>&, std::weak_ptr<_Tp>&)
/usr/include/c++/4.6/bits/stl_queue.h:314:5: note: template<class _Tp, class _Seq> void std::swap(std::queue<_Tp, _Seq>&, std::queue<_Tp, _Seq>&)
/usr/include/c++/4.6/bits/stl_queue.h:546:5: note: template<class _Tp, class _Sequence, class _Compare> void std::swap(std::priority_queue<_Tp, _Sequence, _Compare>&, std::priority_queue<_Tp, _Sequence, _Compare>&)
/usr/include/c++/4.6/bits/stl_set.h:748:5: note: template<class _Key, class _Compare, class _Alloc> void std::swap(std::set<_Key, _Compare, _Alloc>&, std::set<_Key, _Compare, _Alloc>&)
/usr/include/c++/4.6/bits/stl_multiset.h:731:5: note: template<class _Key, class _Compare, class _Alloc> void std::swap(std::multiset<_Key, _Compare, _Alloc>&, std::multiset<_Key, _Compare, _Alloc>&)
/usr/include/c++/4.6/bits/stl_stack.h:289:5: note: template<class _Tp, class _Seq> void std::swap(std::stack<_Tp, _Seq>&, std::stack<_Tp, _Seq>&)
/usr/include/c++/4.6/array:234:5: note: template<class _Tp, unsigned int _Nm> void std::swap(std::array<_Tp, _Nm>&, std::array<_Tp, _Nm>&)
/usr/include/c++/4.6/mutex:637:5: note: template<class _Mutex> void std::swap(std::unique_lock<_Mutex>&, std::unique_lock<_Mutex>&)
/usr/include/c++/4.6/bits/forward_list.h:1296:5: note: template<class _Tp, class _Alloc> void std::swap(std::forward_list<_Tp, _Alloc>&, std::forward_list<_Tp, _Alloc>&)
/usr/include/c++/4.6/thread:201:3: note: void std::swap(std::thread&, std::thread&)
/usr/include/c++/4.6/thread:201:3: note: no known conversion for argument 1 from ‘int*’ to ‘std::thread&’
/usr/include/c++/4.6/future:940:5: note: template<class _Res> void std::swap(std::promise<_Res>&, std::promise<_Res>&)
/usr/include/c++/4.6/future:1289:5: note: template<class _Res, class ... _ArgTypes> void std::swap(std::packaged_task<_Res(_ArgTypes ...)>&, std::packaged_task<_Res(_ArgTypes ...)>&)
/usr/include/c++/4.6/bits/regex.h:738:5: note: template<class _Ch_type, class _Rx_traits> void std::swap(std::basic_regex<_Ch_type, _Rx_traits>&, std::basic_regex<_Ch_type, _Rx_traits>&)
/usr/include/c++/4.6/bits/regex.h:1882:5: note: template<class _Bi_iter, class _Allocator> void std::swap(std::match_results<_FwdIterT, _Alloc>&, std::match_results<_FwdIterT, _Alloc>&)
/usr/include/c++/4.6/bits/unordered_map.h:183:5: note: template<class _Key, class _Tp, class _Hash, class _Pred, class _Alloc, bool __cache_hash_code> void std::swap(std::__unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc, __cache_hash_code>&, std::__unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc, __cache_hash_code>&)
/usr/include/c++/4.6/bits/unordered_map.h:192:5: note: template<class _Key, class _Tp, class _Hash, class _Pred, class _Alloc, bool __cache_hash_code> void std::swap(std::__unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc, __cache_hash_code>&, std::__unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc, __cache_hash_code>&)