Wrong answer in Find Your Gift

Could someone point out the error in the following code? Giving Wrong Answer, not sure why.

Here’s the link to the code:-
https://www.codechef.com/viewsolution/30673101

@xorbitinf2000 See line no 24 and correct it(assignment instead of == operator)

@lost_boy12 Thank you so much, had failed to spot that !

1 Like