Borderou de evaluare (job #2042133)

Utilizator AlexTheDagonBogdan Tudor AlexTheDagon Data 18 octombrie 2017 09:05:45
Problema Desen Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:19:11: error: expected primary-expression before ‘const’ bool cmp((const eee &x, const eee &y); ^ user.cpp:19:11: error: expected ‘)’ before ‘const’ user.cpp:84:9: error: redefinition of ‘bool cmp’ bool cmp((const eee &x, const eee &y) ^ user.cpp:19:6: error: ‘bool cmp’ previously defined here bool cmp((const eee &x, const eee &y); ^ user.cpp:84:11: error: expected primary-expression before ‘const’ bool cmp((const eee &x, const eee &y) ^ user.cpp:84:11: error: expected ‘)’ before ‘const’ In file included from /usr/include/c++/4.8/algorithm:62:0, from user.cpp:4: /usr/include/c++/4.8/bits/stl_algo.h: In instantiation of ‘void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<eee*, std::vector<eee> >; _Compare = bool]’: /usr/include/c++/4.8/bits/stl_algo.h:2250:70: required from ‘void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<eee*, std::vector<eee> >; _Compare = bool]’ /usr/include/c++/4.8/bits/stl_algo.h:5514:55: required from ‘void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = __gnu_cxx::__normal_iterator<eee*, std::vector<eee> >; _Compare = bool]’ user.cpp:48:39: required from here /usr/include/c++/4.8/bits/stl_algo.h:2183:29: error: ‘__comp’ cannot be used as a function if (__comp(*__i, *__first)) ^ /usr/include/c++/4.8/bits/stl_algo.h: In instantiation of ‘void std::__heap_select(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<eee*, std::vector<eee> >; _Compare = bool]’: /usr/include/c++/4.8/bits/stl_algo.h:5363:59: required from ‘void std::partial_sort(_RAIter, _RAIter, _RAIter, _Compare) [with _RAIter = __gnu_cxx::__normal_iterator<eee*, std::vector<eee> >; _Compare = bool]’ /usr/include/c++/4.8/bits/stl_algo.h:2355:68: required from ‘void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<eee*, std::vector<eee> >; _Size = int; _Compare = bool]’ /usr/include/c++/4.8/bits/stl_algo.h:5513:44: required from ‘void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = __gnu_cxx::__normal_iterator<eee*, std::vector<eee> >; _Compare = bool]’ user.cpp:48:39: required from here /usr/include/c++/4.8/bits/stl_algo.h:1972:27: error: ‘__comp’ cannot be used as a function if (__comp(*__i, *__first)) ^ /usr/include/c++/4.8/bits/stl_algo.h: In instantiation of ‘void std::__move_median_first(_Iterator, _Iterator, _Iterator, _Compare) [with _Iterator = __gnu_cxx::__normal_iterator<eee*, std::vector<eee> >; _Compare = bool]’: /usr/include/c++/4.8/bits/stl_algo.h:2318:68: required from ‘_RandomAccessIterator std::__unguarded_partition_pivot(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<eee*, std::vector<eee> >; _Compare = bool]’ /usr/include/c++/4.8/bits/stl_algo.h:2360:62: required from ‘void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<eee*, std::vector<eee> >; _Size = int; _Compare = bool]’ /usr/include/c++/4.8/bits/stl_algo.h:5513:44: required from ‘void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = __gnu_cxx::__normal_iterator<eee*, std::vector<eee> >; _Compare = bool]’ user.cpp:48:39: required from here /usr/include/c++/4.8/bits/stl_algo.h:110:28: error: ‘__comp’ cannot be used as a function if (__comp(*__a, *__b)) ^ /usr/include/c++/4.8/bits/stl_algo.h:112:25: error: ‘__comp’ cannot be used as a function if (__comp(*__b, *__c)) ^ /usr/include/c++/4.8/bits/stl_algo.h:114:30: error: ‘__comp’ cannot be used as a function else if (__comp(*__a, *__c)) ^ /usr/include/c++/4.8/bits/stl_algo.h:117:33: error: ‘__comp’ cannot be used as a function else if (__comp(*__a, *__c)) ^ /usr/include/c++/4.8/bits/stl_algo.h:119:33: error: ‘__comp’ cannot be used as a function else if (__comp(*__b, *__c))

Ceva nu functioneaza?