There are several things on which I wish to comment.
1. Do not pass the vector parameter as pass by value.
Right way -
(const vector<int>& arrs)
2. You could reverse the vector in-place in which case you need to remove the const in point 1.
std::reverse(arrs.begin(), arr.end());
3. You also could copy values to another vector by reversing it.
This way you can simply return the newly created vector.
vector<int> returnArr(const vector<int>& arrs)
{
vector<int> arrs2(arrs.size());
std::copy(arrs.rbegin(), arrs.rend(), arrs2.begin());
return arrs2;
}
4. This is another way to display the vector contents in reverse order.
std::copy(arrs.rbegin(), arrs.rend(), ostream_iterator<int>(cout, " "));