Getting run time error for mixtures question

My solution is http://www.codechef.com/viewsolution/1232748 for the problem http://www.codechef.com/problems/MIXTURES.But I am getting run time error.Please suggest me that why am getting run time error.Outputs are correctly coming for the test cases given.

Thanks in advance.

It solved your problem friend?

link text

1 Like

Run time error could be anything, even if your solution passes all the test cases given in the problem state, it doesn’t imply it will pass other test cases. Try to generate some test base on the problem statement and check it against your solution. Unless you can come up with more specific question, no one are willing to do all the hard work and debug the code for you.