func_code_string: #include <bits/stdc++.h>   using namespace std;   long long mod = 1e9 + 7;   long long inf = 1e18;   double eps = 1e-8;   double pi = acos(-1);   ifstream in( input.txt );   ofstream out( output.txt );   int main() {     int n;     cin >> n;     vector<int> a;     for (int i = 0; i < n; i++) {       int t;       cin >> t;       a.push_back(t);     }     sort(a.begin(), a.end());     for (int i = 0; i < n; i++) {       if (i + 1 != a[i]) {         cout << i + 1 << endl;         return 0;       }     }     cout << n + 1;     return 0;   }   