why index 3 item is not getting inserted in map?
#include <bits/stdc++.h>
double maximumValue (vector<pair<int, int>>& items, int n, int w) {
map<double,int,greater<double>>mp;
for(int i=0;i<n;i++){
mp.insert ({(items[i].second / (double)items[i].first), i });
}
}
Skipping index 3 of items for input
8 150
30 2 50 **37** 97 26 77 85 weight
30 50 2 **37** 85 77 26 97 value
why index 3 item is not getting inserted in map?