Borderou de evaluare (job #2741384)
Utilizator | Data | 15 aprilie 2021 22:22:23 | |
---|---|---|---|
Problema | Timbre | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main(int, const char**)':
main.cpp:26:35: error: no matching function for call to 'sort_heap(int, std::vector<std::pair<int, int> >::iterator)'
sort_heap(i + 1, vec.end());
^
In file included from /usr/include/c++/6/bits/stl_algo.h:61:0,
from /usr/include/c++/6/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:65,
from main.cpp:4:
/usr/include/c++/6/bits/stl_heap.h:414:5: note: candidate: template<class _RAIter> void std::sort_heap(_RAIter, _RAIter)
sort_heap(_RandomAccessIterator __first, _RandomAccessIterator __last)
^~~~~~~~~
/usr/include/c++/6/bits/stl_heap.h:414:5: note: template argument deduction/substitution failed:
main.cpp:26:35: note: deduced conflicting types for parameter '_RAIter' ('int' and '__gnu_cxx::__normal_iterator<std::pair<int, int>*, std::vector<std::pair<int, int> > >')
sort_heap(i + 1, vec.end());
^
In file included from /usr/include/c++/6/bits/stl_algo.h:61:0,
from /usr/include/c++/6/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:65,
from main.cpp:4:
/usr/include/c++/6/bits/stl_heap.h:441:5: note: candidate: template<class _RAIter, class _Compare> void std::sort_heap(_RAIter, _RAIter, _Compare)
sort_heap(_RandomAccessIterator __first, _RandomAccessIterator __last,
^~~~~~~~~
/usr/include/c++/6/bits/stl_heap.h:441:5: note: template argument deduction/substitution failed:
main.cpp:26:35: note: deduced conflicting types for parameter '_RAIter' ('int' and '__gnu_cxx::__normal_iterator<std::pair<int, int>*, std::vector<std::pair<int, int> > >')
sort_heap(i + 1, vec.end());
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !