func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     int n, in, ans = 0, asum = 0, bsum = 0;     vector<int> a, b;     vector<int>::iterator minit, it2;     scanf( %d , &n);     for (int i = 0; i < n; i++) {       scanf( %d , &in);       a.push_back(in);     }     b = a;     sort(b.begin(), b.end());     for (int i = 0; i < n; i++) {       asum += a[i];       bsum += b[i];       if (asum == bsum) {         ans++;       }     }     printf( %d n , ans);     return 0;   }   