Pair Of Roses Test case working But Still Wrong Answer

https://hack.codingblocks.com/contests/c/262/696 Pls See

Here n1 and n2 should be in increasing order.
Send link of problem and solution from next time as it is easy to debug that.

link to the problem
https://hack.codingblocks.com/contests/c/262/696

the code was such that n1 and n2 will always be in increasing order though I still modified it yet its not working