Borderou de evaluare (job #1982133)

Utilizator RazvanatorHilea Razvan Razvanator Data 17 mai 2017 18:58:22
Problema Lupul Urias si Rau Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:16:15: error: missing template arguments before ‘a’ bool cmp(pair a,pair b) ^ user.cpp:16:22: error: missing template arguments before ‘b’ bool cmp(pair a,pair b) ^ user.cpp:16:23: error: expression list treated as compound expression in initializer [-fpermissive] bool cmp(pair a,pair b) ^ user.cpp:17:1: error: expected ‘,’ or ‘;’ before ‘{’ token { ^ user.cpp: In function ‘void urca(int)’: user.cpp:24:13: error: ‘h’ was not declared in this scope if (h[p]<h[p/2]) { ^ user.cpp: In function ‘void adauga(int)’: user.cpp:33:5: error: ‘h’ was not declared in this scope h[++nh]=x; ^ In file included from /usr/include/c++/4.8/algorithm:62:0, from user.cpp:2: /usr/include/c++/4.8/bits/stl_algo.h: In instantiation of ‘void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = std::pair<int, int>*; _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 = std::pair<int, int>*; _Compare = bool]’ /usr/include/c++/4.8/bits/stl_algo.h:5514:55: required from ‘void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = std::pair<int, int>*; _Compare = bool]’ user.cpp:43:23: 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 = std::pair<int, int>*; _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 = std::pair<int, int>*; _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 = std::pair<int, int>*; _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 = std::pair<int, int>*; _Compare = bool]’ user.cpp:43:23: 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 = std::pair<int, int>*; _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 = std::pair<int, int>*; _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 = std::pair<int, int>*; _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 = std::pair<int, int>*; _Compare = bool]’ user.cpp:43:23: 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))

Ceva nu functioneaza?