func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     ios_base::sync_with_stdio(false);     cin.tie(0);     int n;     cin >> n;     vector<int> v;     for (int i = 0; i < n; i++) {       int num;       cin >> num;       v.push_back(num);     }     vector<pair<int, int> > vp;     int x, y;     for (int i = 0; i < n; i++) {       if (i == 0) {         x = v[i + 1] - v[i];         y = v[n - 1] - v[i];       } else if (i == n - 1) {         x = v[i] - v[i - 1];         y = v[i] - v[0];       } else {         x = min(v[i] - v[i - 1], v[i + 1] - v[i]);         y = max(v[i] - v[0], v[n - 1] - v[i]);       }       vp.push_back(make_pair(x, y));     }     for (auto &i : vp) {       cout << i.first <<     << i.second << endl;     }     return 0;   }   