func_code_string: #include <bits/stdc++.h>   using namespace std;   vector<pair<double, double> > a;   pair<double, double> cur;   double r;   void findmax(pair<double, double> p) {     double y =         sqrt(2 * r * 2 * r - abs(p.first - cur.first) * abs(p.first - cur.first));     y += p.second;     cur.second = max(cur.second, y);   }   void doit(double x) {     for (double k = 0; k < a.size(); k++) {       if (abs(x - a[k].first) <= 2 * r) findmax(a[k]);     }     a.push_back(cur);   }   int main() {     double x, n;     cin >> n >> r;     for (double k = 0; k < n; k++) {       cin >> x;       cur.first = x;       cur.second = r;       doit(x);     }     for (double k = 0; k < a.size(); k++)       cout << setprecision(17) << a[k].second <<    ;     return 0;   }   