func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     cin.tie(nullptr);     ios::sync_with_stdio(false);     int n;     cin >> n;     ;     vector<int> a(n);     for (int i = 0; i < n; i++) cin >> a[i];     sort(a.begin(), a.end());     int current = 1;     for (int i = 0; i < n; i++) {       if (a[i] < current) continue;       a[i] = current;       current++;     }     cout << a.back() + 1 << endl;     return 0;   }   