func_code_string: #include <bits/stdc++.h>   using namespace std;   const int N = (int)6e4 + 2;   int n;   map<string, int> mp;   vector<pair<string, int>> v;   int main() {     ios_base::sync_with_stdio(false);     cin.tie(NULL);     cin >> n;     string str;     for (int i = 0; i < n; ++i) {       cin >> str;       mp[str] = i;     }     for (map<string, int>::iterator it = mp.begin(); it != mp.end(); ++it) {       v.push_back(*it);     }     sort(v.begin(), v.end(),          [](const pair<string, int>& a, pair<string, int>& b) {            return a.second > b.second;          });     for (int i = 0; i < v.size(); ++i) cout << v[i].first << endl;     return 0;   }   