Quadratic question

https://ide.codingblocks.com/s/51593
test case 1 is not being passed

Hi Mudit, just change the order of f and g in line number 21.
Here is the code for your reference https://ide.codingblocks.com/s/51600

its still not resolved

why was the order created a problem in first place

Hey Mudit, you have to print answer in sorted order.