#include #include #include using namespace std; int main() { const int a[] = {10, 20, 30}; const size_t n = sizeof a / sizeof a[0]; vector v(a, a + n); for (vector::const_reverse_iterator it = v.rbegin(); it != v.rend(); ++it) { cout << *it << "\n"; } return EXIT_SUCCESS; }