func_code_string: #include <bits/stdc++.h>   using namespace std;   long long int sum;   vector<int> x;   int main() {     int n;     cin >> n;     x.push_back(-2099999999);     for (int i = 0; i < n; i++) {       int a;       cin >> a;       x.push_back(a);     }     sort(x.begin(), x.end());     for (int i = 1; i <= n; i++) sum += abs(i - x[i]);     cout << sum << endl;   }   