func_code_string: #include <bits/stdc++.h>   using namespace std;   int main(int argc, char *argv[]) {     vector<string> a;     int n;     cin >> n;     a.resize(n);     for (int i = 0; i < n; ++i) cin >> a[i];     for (int i = n - 2; i >= 0; --i) {       const char *x = a[i].c_str(), *y = a[i + 1].c_str();       int j = 1;       while (x[j] && x[j] == y[j]) ++j;       if (x[j] > y[j]) {         a[i].resize(j);       }     }     for (string s : a) cout << s <<   n ;     return 0;   }   