snackdown onsite mirror WEAPON getting WA

https://www.codechef.com/viewsolution/14384896
This is the link to my solution to the problem fusing weapons of the snackdown onsite finales
Can someone tell the error

//