how to reverse a vector

C++
//vector<int> A;
reverse(A.begin(),A.end());
Source

Also in C++: