Borderou de evaluare (job #2945843)
Utilizator | Data | 24 noiembrie 2022 10:48:41 | |
---|---|---|---|
Problema | Order 2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:32:29: error: no matching function for call to 'reverse(int*, int)'
32 | reverse(a + 1, + pos);
| ^
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:1165:5: note: candidate: 'template<class _BIter> void std::reverse(_BIter, _BIter)'
1165 | reverse(_BidirectionalIterator __first, _BidirectionalIterator __last)
| ^~~~~~~
/usr/include/c++/10/bits/stl_algo.h:1165:5: note: template argument deduction/substitution failed:
main.cpp:32:29: note: deduced conflicting types for parameter '_BIter' ('int*' and 'int')
32 | reverse(a + 1, + pos);
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !