Borderou de evaluare (job #2780283)
Utilizator | Data | 6 octombrie 2021 17:14:47 | |
---|---|---|---|
Problema | Inv | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int mergeSort(std::vector<int>&, int, int)':
main.cpp:16:54: error: no matching function for call to 'merge(std::vector<int>&, int&, int, int&)'
16 | count=count+merge(v,/*temp,*/left,mid+1,right);
| ^
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from main.cpp:1:
/usr/include/c++/10/bits/stl_algo.h:4946:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter> _OIter std::merge(_IIter1, _IIter1, _IIter2, _IIter2, _OIter)'
4946 | merge(_InputIterator1 __first1, _InputIterator1 __last1,
| ^~~~~
/usr/include/c++/10/bits/stl_algo.h:4946:5: note: template argument deduction/substitution failed:
main.cpp:16:54: note: deduced conflicting types for parameter '_IIter1' ('std::vector<int>' and 'int')
16 | count=count+merge(v,/*temp,*/left,mid+1,right);
| ^
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from main.cpp:1:
/usr/include/c++/10/bits/stl_algo.h:4997:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _Compare> _OIter std::merge(_IIter1, _IIter1, _IIter2, _IIter2, _OIter, _Compare)'
4997 | merge(_InputIterator1 __first1, _InputIterator1 __last1,
| ^~~~~
/usr/include/c++/10/bits/stl_algo.h:4997:5: note: template argument deduction/substitution failed:
main.cpp:16:54: note: deduced conflicting types for parameter '_IIter1' ('std::vector<int>' and 'int')
16 | count=count+merge(v,/*temp,*/left,mid+1,right);
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !