func_code_string: #include <bits/stdc++.h>   using namespace std;   bool options(long a, long b) { return a > b; }   int main() {     long n, i, *arr, *arrSort, *index;     map<long, long> res;     cin >> n;     arr = new long[n];     arrSort = new long[n];     index = new long[n];     for (i = 0; i < n; i++) {       cin >> arr[i];       arrSort[i] = arr[i];     }     sort(arrSort, arrSort + n, options);     for (i = 0; i < n; i++) {       index[i] = i + 1;     }     for (i = 1; i < n; i++) {       if (arrSort[i] == arrSort[i - 1]) {         index[i] = index[i - 1];       }     }     for (i = 0; i < n; i++) {       res[arrSort[i]] = index[i];     }     for (i = 0; i < n; i++) {       cout << res[arr[i]] <<    ;     }     return 0;   }   