Krillin is dead AGAIN Problem

Hi, I am getting wrong answer for krillin is dead again
Can anyone say me where I am getting it wrong.
Thanks in advance.

You just need to convert your int to long long , because sum can exceed int’s range. Here’s your ac code

Even i am facing the same issue. I have tried 100s of test cases. It matches with the ac code still its giving wa. If possible can someone help me too.
Here’s my