Посмотрите пожалуйста, почему не работает
 #include <iterator>
#include <algorithm>
#include <list>
#include <deque>
#include <string>
int main()
{
     int n; //reverse FUNC
     std::cin >> n;
     std::vector<std::string> v(n);
     for(std::string x : v)
       std::cin >> x;
     std::reverse(v.begin(), v.end());
     for(auto it = v.begin(); it != v.end(); ++it)
       std::cout << *it;
     //for(const auto& x : v)
       //std::cout << x;
 }