func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     long long int n, i;     cin >> n;     long long int a[n];     for (i = 0; i < n; i = i + 1) {       cin >> a[i];     }     long long int mn = a[n - 1];     long long int m[n];     for (i = n - 1; i >= 0; i--) {       mn = min(mn, a[i]);       m[i] = mn;     }     for (i = 0; i < n; i = i + 1) {       long long int low = i;       long long int high = n - 1;       long long int res = i;       while (low <= high) {         long long int mid = (low + high) / 2;         if (m[mid] >= a[i]) {           high = mid - 1;         } else if (m[mid] < a[i]) {           low = mid + 1;           res = max(res, mid);         }       }       cout << res - i - 1 <<    ;     }     cout << endl;   }   