func_code_string: #include <bits/stdc++.h>   using namespace std;   bool cmp(pair<int, int> p1, pair<int, int> p2) {     return (p1.first < p2.first) ||            (p1.first == p2.first && p1.second > p2.second);   }   int main() {     bool b[200000];     int t[200000];     int n;     cin >> n;     for (int i = 1; i <= n; ++i) {       cin >> t[i];       b[i] = true;     }     int answer = 1;     for (int i = 2; i <= n; ++i) {       if (t[i] == 0) {         ++answer;         continue;       }       if (b[t[i]])         b[t[i]] = false;       else         ++answer;     }     cout << answer;   }   