| Problem | rotate |
|---|---|
| User | bribritt |
| Submission Time | 2025-05-20 14:36:20 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
rotate.cpp: In function ‘void energy(int, std::vector<int>)’:
rotate.cpp:10:59: error: no matching function for call to ‘rotate(<brace-enclosed initializer list>)’
10 | rotate({u[i].second,u[i+(n+1)/2].first-u[i].first+25000});
| ^
In file included from rotate.cpp:1:
rotate.h:4:6: note: candidate: ‘void rotate(std::vector<int>, int)’
4 | void rotate(std::vector<int> t, int x);
| ^~~~~~
rotate.h:4:6: note: candidate expects 2 arguments, 1 provided
In file included from /usr/include/c++/9/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from rotate.cpp:2:
/usr/include/c++/9/bits/stl_algo.h:1440:5: note: candidate: ‘template<class _FIter> _FIter std::_V2::rotate(_FIter, _FIter, _FIter)’
1440 | rotate(_ForwardIterator __first, _ForwardIterator __middle,
| ^~~~~~<