func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     int n, k;     cin >> n >> k;     vector<pair<int, int> > v;     for (int i = 0; i < n; i++) {       int a;       cin >> a;       v.push_back(make_pair(a, i));     }     sort(v.begin(), v.end());     int cur = 0;     vector<int> ans;     for (int i = 0; i < v.size() && cur + v[i].first <= k; i++) {       cur += v[i].first;       ans.push_back(v[i].second);     }     cout << ans.size() << endl;     for (int i = 0; i < ans.size(); i++) {       cout << ans[i] + 1 <<    ;     }   }   