Borderou de evaluare (job #354698)

Utilizator avatar eragon0502 Dumitrescu Dragos eragon0502 IP ascuns
Problemă Flota Compilator cpp
Rundă Arhiva de probleme Status evaluat
Dată 20 feb. 2018 15:55:29 Scor 0

Raport evaluator

Eroare de compilare: user.cpp:22:16: error: expected ‘)’ before ‘a’ user.cpp:22:23: error: expected ‘)’ before ‘b’ user.cpp:22:24: error: expression list treated as compound expression in initializer [-fpermissive] user.cpp:22:24: warning: left operand of comma operator is a reference, not call, to function ‘link’ [-Waddress] user.cpp:22:24: warning: left operand of comma operator has no effect [-Wunused-value] user.cpp:23:1: error: expected ‘,’ or ‘;’ before ‘{’ token user.cpp: In function ‘int main()’: user.cpp:56:52: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘short int*’ [-Wformat] user.cpp:56:52: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat] user.cpp:56:52: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘short int*’ [-Wformat] In file included from /usr/include/c++/4.6/algorithm:63:0, from user.cpp:2: /usr/include/c++/4.6/bits/stl_algo.h: In function ‘void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = link*, _Compare = bool]’: /usr/include/c++/4.6/bits/stl_algo.h:2196:4: instantiated from ‘void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = link*, _Compare = bool]’ /usr/include/c++/4.6/bits/stl_algo.h:5447:4: instantiated from ‘void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = link*, _Compare = bool]’ user.cpp:64:26: instantiated from here /usr/include/c++/4.6/bits/stl_algo.h:2129:4: error: ‘__comp’ cannot be used as a function /usr/include/c++/4.6/bits/stl_algo.h: In function ‘void std::__heap_select(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = link*, _Compare = bool]’: /usr/include/c++/4.6/bits/stl_algo.h:5295:7: instantiated from ‘void std::partial_sort(_RAIter, _RAIter, _RAIter, _Compare) [with _RAIter = link*, _Compare = bool]’ /usr/include/c++/4.6/bits/stl_algo.h:2301:8: instantiated from ‘void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = link*, _Size = int, _Compare = bool]’ /usr/include/c++/4.6/bits/stl_algo.h:5445:4: instantiated from ‘void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = link*, _Compare = bool]’ user.cpp:64:26: instantiated from here /usr/include/c++/4.6/bits/stl_algo.h:1918:2: error: ‘__comp’ cannot be used as a function /usr/include/c++/4.6/bits/stl_algo.h: In function ‘void std::__move_median_first(_Iterator, _Iterator, _Iterator, _Compare) [with _Iterator = link*, _Compare = bool]’: /usr/include/c++/4.6/bits/stl_algo.h:2264:7: instantiated from ‘_RandomAccessIterator std::__unguarded_partition_pivot(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = link*, _Compare = bool]’ /usr/include/c++/4.6/bits/stl_algo.h:2306:62: instantiated from ‘void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = link*, _Size = int, _Compare = bool]’ /usr/include/c++/4.6/bits/stl_algo.h:5445:4: instantiated from ‘void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = link*, _Compare = bool]’ user.cpp:64:26: instantiated from here /usr/include/c++/4.6/bits/stl_algo.h:112:7: error: ‘__comp’ cannot be used as a function /usr/include/c++/4.6/bits/stl_algo.h:114:4: error: ‘__comp’ cannot be used as a function /usr/include/c++/4.6/bits/stl_algo.h:2264:7: instantiated from ‘_RandomAccessIterator std::__unguarded_partition_pivot(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = link*, _Compare = bool]’ /usr/include/c++/4.6/bits/stl_algo.h:2306:62: instantiated from ‘void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = link*, _Size = int, _Compare = bool]’ /usr/include/c++/4.6/bits/stl_algo.h:5445:4: instantiated from ‘void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = link*, _Compare = bool]’ user.cpp:64:26: instantiated from here /usr/include/c++/4.6/bits/stl_algo.h:116:9: error: ‘__comp’ cannot be used as a function /usr/include/c++/4.6/bits/stl_algo.h:119:12: error: ‘__comp’ cannot be used as a function /usr/include/c++/4.6/bits/stl_algo.h:121:12: error: ‘__comp’ cannot be used as a function /usr/include/c++/4.6/bits/stl_algo.h: In function ‘_RandomAccessIterator std::__unguarded_partition(_RandomAccessIterator, _RandomAccessIterator, const _Tp&, _Compare) [with _RandomAccessIterator = link*, _Tp = link, _Compare = bool]’: /usr/include/c++/4.6/bits/stl_algo.h:2265:78: instantiated from ‘_RandomAccessIterator std::__unguarded_partition_pivot(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = link*, _Compare = bool]’ /usr/include/c++/4.6/bits/stl_algo.h:2306:62: instantiated from ‘void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = link*, _Size = int, _Compare = bool]’ /usr/include/c++/4.6/bits/stl_algo.h:5445:4: instantiated from ‘void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = link*, _Compare = bool]’ user.cpp:64:26: instantiated from here /usr/include/c++/4.6/bits/stl_algo.h:2233:4: error: ‘__comp’ cannot be used as a function /usr/include/c++/4.6/bits/stl_algo.h:2236:4: error: ‘__comp’ cannot be used as a function /usr/include/c++/4.6/bits/stl_algo.h: In function ‘void std::__unguarded_linear_insert(_RandomAccessIterator, _Compare) [with _RandomAccessIterator = link*, _Compare = bool]’: /usr/include/c++/4.6/bits/stl_algo.h:2137:6: instantiated from ‘void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = link*, _Compare = bool]’ /usr/include/c++/4.6/bits/stl_algo.h:2196:4: instantiated from ‘void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = link*, _Compare = bool]’ /usr/include/c++/4.6/bits/stl_algo.h:5447:4: instantiated from ‘void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = link*, _Compare = bool]’ user.cpp:64:26: instantiated from here /usr/include/c++/4.6/bits/stl_algo.h:2087:7: error: ‘__comp’ cannot be used as a function