Borderou de evaluare (job #2756433)

Utilizator Tudor_1808Tudor Ioan Popescu Tudor_1808 Data 31 mai 2021 18:25:38
Problema Arbore partial de cost minim Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:23:10: error: 'ura' was not declared in this scope bool cmp(ura a, ura b) ^~~ main.cpp:23:17: error: 'ura' was not declared in this scope bool cmp(ura a, ura b) ^~~ main.cpp:23:22: error: expression list treated as compound expression in initializer [-fpermissive] bool cmp(ura a, ura b) ^ In file included from /usr/include/c++/6/bits/stl_algobase.h:71:0, from /usr/include/c++/6/bits/char_traits.h:39, from /usr/include/c++/6/ios:40, from /usr/include/c++/6/ostream:38, from /usr/include/c++/6/iostream:39, from main.cpp:1: /usr/include/c++/6/bits/predefined_ops.h: In instantiation of 'constexpr bool __gnu_cxx::__ops::_Iter_comp_iter<_Compare>::operator()(_Iterator1, _Iterator2) [with _Iterator1 = muchie*; _Iterator2 = muchie*; _Compare = bool]': /usr/include/c++/6/bits/stl_algo.h:1844:14: required from 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = muchie*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool>]' /usr/include/c++/6/bits/stl_algo.h:1882:25: required from 'void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = muchie*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool>]' /usr/include/c++/6/bits/stl_algo.h:1968:31: required from 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = muchie*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool>]' /usr/include/c++/6/bits/stl_algo.h:4739:18: required from 'void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = muchie*; _Compare = bool]' main.cpp:60:19: required from here /usr/include/c++/6/bits/predefined_ops.h:125:18: error: expression cannot be used as a function { return bool(_M_comp(*__it1, *__it2)); } ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/6/bits/predefined_ops.h: In instantiation of 'bool __gnu_cxx::__ops::_Iter_comp_val<_Compare>::operator()(_Iterator, _Value&) [with _Iterator = muchie*; _Value = muchie; _Compare = bool]': /usr/include/c++/6/bits/stl_heap.h:129:48: required from 'void std::__push_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare) [with _RandomAccessIterator = muchie*; _Distance = long int; _Tp = muchie; _Compare = __gnu_cxx::__ops::_Iter_comp_val<bool>]' /usr/include/c++/6/bits/stl_heap.h:230:23: required from 'void std::__adjust_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare) [with _RandomAccessIterator = muchie*; _Distance = long int; _Tp = muchie; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool>]' /usr/include/c++/6/bits/stl_heap.h:335:22: required from 'void std::__make_heap(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = muchie*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool>]' /usr/include/c++/6/bits/stl_algo.h:1669:23: required from 'void std::__heap_select(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = muchie*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool>]' /usr/include/c++/6/bits/stl_algo.h:1930:25: required from 'void std::__partial_sort(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = muchie*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool>]' /usr/include/c++/6/bits/stl_algo.h:1945:27: required from 'void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = muchie*; _Size = long int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool>]' /usr/include/c++/6/bits/stl_algo.h:1965:25: required from 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = muchie*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool>]' /usr/include/c++/6/bits/stl_algo.h:4739:18: required from 'void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = muchie*; _Compare = bool]' main.cpp:60:19: required from here /usr/include/c++/6/bits/predefined_ops.h:147:11: error: expression cannot be used as a function { return bool(_M_comp(*__it, __val)); } ^~~~~~~~~~~~~~~~~~~~~~~~~~~ Non zero exit status: 1

Ceva nu functioneaza?