I am unable to solve this question please provide solution for this oroblem

please give answer for this question

step-01: take input of int salary, n;

step-02: make array of pair<string,int> and store every employee name and salary in this array.

step-03: traverse the array and collect the employee having salary greater then given value of min. salary in a vector as: vector<pair<string,int>>v;

step-04: sort the vector according to output.

step-05: print the final vector v.

Now, try to implement on your own. then see the below solution that i have provided for your reference:

Reference Code : https://ide.codingblocks.com/s/671459

i hope this help,
if you have further doubt feel free to ask