Corona in Karunanagar | SIGBART ERROR

https://www.codechef.com/viewsolution/30981301
This is my code, i am basically doing what the explanation in the sample test case was doing, insert ‘|’ for seperation before each day and also infecting the ones beside ‘1’ it is passing the sample test cases, any help would be appreciated thanks