Wrong answer in test case 2

Getting output : TESTCASE #2: wrong-answer (Time: 0 s), while code seems alright

Provide the question link and your code link also.

Question link : https://hack.codingblocks.com/contests/c/587/50/submissions
Code link : https://hack.codingblocks.com/contests/c/587/50/submissions

Save your code on ide and then share the link ,this link is not visible to me.

https://ide.codingblocks.com/s/51287

Hey Sehajbir, you made a little mistake in your code update line:22 as else if(d == 0) instead of else if(d = 0) because here you are checking if d is equal to 0 or not, you are not assigning 0 to d.

Thank you so much, that was a clumsy mistake!