func_code_string: #include <bits/stdc++.h>   using namespace std;   int main(int argc, const char* argv[]) {     int n, maxf;     cin >> n;     int h[n];     for (int i = 0; i < n; i++) cin >> h[i];     maxf = h[n - 1];     h[n - 1] = 0;     for (int i = n - 2; i >= 0; i--) {       if (h[i] > maxf) {         maxf = h[i];         h[i] = 0;       } else         h[i] = maxf - h[i] + 1;     }     for (int i = 0; i < n; i++) cout << h[i] <<    ;     return 0;   }   