Why am i getting a SIGBART error i my code (RECNDSTR)

https://www.codechef.com/viewsolution/32505971

why s[0]=temp?
shouldn’t it be temp=s[0]?