func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     ios_base::sync_with_stdio(false);     cin.tie(NULL);     int n, k = 0;     cin >> n;     int arr[n], brr[n], crr[n];     for (int i = 0; i < n; i++) {       cin >> arr[i] >> brr[i];       crr[i] = arr[i];     }     sort(crr, crr + n);     for (int i = 0; i < n; i++) {       int upper = upper_bound(crr, crr + n, brr[i]) - crr;       int lower = lower_bound(crr, crr + n, brr[i]) - crr;       cout << n - 1 + upper - lower <<     << n - 1 + lower - upper << endl;     }   }   