Football match score coming with error.... Please help audience is waiting

Problem Question : FBMT Problem - CodeChef

MY soultion with runtime error but satisfying the given sample input output
CodeChef: Practical coding for everyone

You are not taking the case when n=0.

1 Like

thanks it worked next time i will be careful with constraints