Runtime issue in CHARGES question of May lunchtime

https://www.codechef.com/viewsolution/47272021
Can anyone explain what went wrong here that i got a runtime error ?
@darshancool25

1 Like

I did the exact same way after getting WA during contest(added a separate case for n==1).
Previously I was getting a WA but now I am getting a RE (SIGSEGV) :sob:

My code is :- CodeChef: Practical coding for everyone

I got the mistake now only , i wasn’t taking input for n=1 :cry:

2 Likes