#include using namespace std; vector costlyIntervals(int n, int k, vector A) { // Retuarn a list of length n consisting of the answers for(int i =0 ;i> n >> k; vector A(n); for(int A_i = 0; A_i < n; A_i++){ cin >> A[A_i]; } vector result = costlyIntervals(n, k, A); for (ssize_t i = 0; i < result.size(); i++) { cout << result[i] << (i != result.size() - 1 ? "\n" : ""); } cout << endl; return 0; }