Borderou de evaluare (job #1722019)
Utilizator | Data | 27 iunie 2016 00:50:43 | |
---|---|---|---|
Problema | Reactivi | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:26:22: error: no matching function for call to ‘sort(std::vector<std::pair<int, int> >&, bool (&)(std::pair<int, int>, std::pair<int, int>))’
sort(temp, pair_sort);
^
user.cpp:26:22: note: candidates are:
In file included from /usr/include/c++/4.8/algorithm:62:0,
from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:64,
from user.cpp:1:
/usr/include/c++/4.8/bits/stl_algo.h:5461:5: note: template<class _RAIter> void std::sort(_RAIter, _RAIter)
sort(_RandomAccessIterator __first, _RandomAccessIterator __last)
^
/usr/include/c++/4.8/bits/stl_algo.h:5461:5: note: template argument deduction/substitution failed:
user.cpp:26:22: note: deduced conflicting types for parameter ‘_RAIter’ (‘std::vector<std::pair<int, int> >’ and ‘bool (*)(std::pair<int, int>, std::pair<int, int>)’)
sort(temp, pair_sort);
^
In file included from /usr/include/c++/4.8/algorithm:62:0,
from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:64,
from user.cpp:1:
/usr/include/c++/4.8/bits/stl_algo.h:5497:5: note: template<class _RAIter, class _Compare> void std::sort(_RAIter, _RAIter, _Compare)
sort(_RandomAccessIterator __first, _RandomAccessIterator __last,
^
/usr/include/c++/4.8/bits/stl_algo.h:5497:5: note: template argument deduction/substitution failed:
user.cpp:26:22: note: deduced conflicting types for parameter ‘_RAIter’ (‘std::vector<std::pair<int, int> >’ and ‘bool (*)(std::pair<int, int>, std::pair<int, int>)’)
sort(temp, pair_sort);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !