Borderou de evaluare (job #1518076)

Utilizator cristibogdanPatrascu Cristian cristibogdan Data 5 noiembrie 2015 13:17:06
Problema Ajutor Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int cmp(int, int)’: user.cpp:9:13: error: ‘x’ was not declared in this scope return (x.} ^ user.cpp:9:15: error: expected unqualified-id before ‘}’ token return (x.} ^ user.cpp:9:15: error: expected ‘)’ before ‘}’ token user.cpp:9:15: error: expected ‘;’ before ‘}’ token In file included from /usr/include/c++/4.8/algorithm:62:0, from user.cpp:3: /usr/include/c++/4.8/bits/stl_algo.h: In instantiation of ‘void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = du*; _Compare = int (*)(int, int)]’: /usr/include/c++/4.8/bits/stl_algo.h:2250:70: required from ‘void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = du*; _Compare = int (*)(int, int)]’ /usr/include/c++/4.8/bits/stl_algo.h:5514:55: required from ‘void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = du*; _Compare = int (*)(int, int)]’ user.cpp:22:27: required from here /usr/include/c++/4.8/bits/stl_algo.h:2183:29: error: cannot convert ‘du’ to ‘int’ in argument passing 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 = du*; _Compare = int (*)(int, int)]’: /usr/include/c++/4.8/bits/stl_algo.h:5363:59: required from ‘void std::partial_sort(_RAIter, _RAIter, _RAIter, _Compare) [with _RAIter = du*; _Compare = int (*)(int, int)]’ /usr/include/c++/4.8/bits/stl_algo.h:2355:68: required from ‘void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = du*; _Size = int; _Compare = int (*)(int, int)]’ /usr/include/c++/4.8/bits/stl_algo.h:5513:44: required from ‘void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = du*; _Compare = int (*)(int, int)]’ user.cpp:22:27: required from here /usr/include/c++/4.8/bits/stl_algo.h:1972:27: error: cannot convert ‘du’ to ‘int’ in argument passing 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 = du*; _Compare = int (*)(int, int)]’: /usr/include/c++/4.8/bits/stl_algo.h:2318:68: required from ‘_RandomAccessIterator std::__unguarded_partition_pivot(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = du*; _Compare = int (*)(int, int)]’ /usr/include/c++/4.8/bits/stl_algo.h:2360:62: required from ‘void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = du*; _Size = int; _Compare = int (*)(int, int)]’ /usr/include/c++/4.8/bits/stl_algo.h:5513:44: required from ‘void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = du*; _Compare = int (*)(int, int)]’ user.cpp:22:27: required from here /usr/include/c++/4.8/bits/stl_algo.h:110:28: error: cannot convert ‘du’ to ‘int’ in argument passing if (__comp(*__a, *__b)) ^ /usr/include/c++/4.8/bits/stl_algo.h:112:25: error: cannot convert ‘du’ to ‘int’ in argument passing if (__comp(*__b, *__c)) ^ /usr/include/c++/4.8/bits/stl_algo.h:114:30: error: cannot convert ‘du’ to ‘int’ in argument passing else if (__comp(*__a, *__c)) ^ /usr/include/c++/4.8/bits/stl_algo.h:117:33: error: cannot convert ‘du’ to ‘int’ in argument passing else if (__comp(*__a, *__c)) ^ /usr/include/c++/4.8/bits/stl_algo.h:119:33: error: cannot convert ‘du’ to ‘int’ in argument passing else if (__comp(*__b, *__c)) ^ /usr/include/c++/4.8/bits/stl_algo.h: In instantiation of ‘_RandomAccessIterator std::__unguarded_partition(_RandomAccessIterator, _RandomAccessIterator, const _Tp&, _Compare) [with _RandomAccessIterator = du*; _Tp = du; _Compare = int (*)(int, int)]’: /usr/include/c++/4.8/bits/stl_algo.h:2319:78: required from ‘_RandomAccessIterator std::__unguarded_partition_pivot(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = du*; _Compare = int (*)(int, int)]’ /usr/include/c++/4.8/bits/stl_algo.h:2360:62: required from ‘void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = du*; _Size = int; _Compare = int (*)(int, int)]’ /usr/include/c++/4.8/bits/stl_algo.h:5513:44: required from ‘void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = du*; _Compare = int (*)(int, int)]’

Ceva nu functioneaza?