#include
#include
using namespace std;
vector between(vector v,
double low, double high)
{
vector result;
for (int i = 0; i < v.size(); i++)
if (low <= v[i] && v[i] <= high)
result.push_back(v[i]);
return result;
}
int main()
{
vector salaries(5);
salaries[0] = 35.0;
salaries[1] = 63.0;
salaries[2] = 48.0;
salaries[3] = 78.0;
salaries[4] = 51.0;
vector midrange_salaries = between(salaries, 45.0, 65.0);
for (int i = 0; i < midrange_salaries.size(); i++)
cout << midrange_salaries[i] << "\n";
return 0;
}