sigabrt in my code for little elephants and strings

http://www.codechef.com/viewsolution/3598927
plz help

There is a small error in the code.
You have taken the size of string array as k but so you should access the elements from 0 to k-1 but you are accessing the elements form 1 to k.

1 Like

thanks a lot :slight_smile:
got ac :slight_smile:

//