Fractional Knapsack

sir i am getting WA in one test case. my code is this

Can you plz share the complete question along with the sample test inputs given so that I could check it.

question link is https://hack.codingblocks.com/app/practice/1/p/2254
sample t/c:
3 50
60 10
100 20
120 30