func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     int n;     scanf( %d , &n);     vector<int> a(n);     for (auto &i : a) scanf( %d , &i);     map<int, int> dp;     int ans = 0;     int last = 0;     for (int i = 0; i < n; i++) {       int x = a[i];       dp[x] = dp[x - 1] + 1;       if (ans < dp[x]) {         ans = dp[x];         last = x;       }     }     vector<int> res;     for (int i = n - 1; i >= 0; i--) {       if (a[i] == last) {         res.push_back(i);         last--;       }     }     reverse(res.begin(), res.end());     printf( %d n , ans);     for (auto &i : res) printf( %d  , i + 1);     return 0;   }   