I’m getting a SIGSEGV here. Can someone point out my mistake.
Here’s my link to the solution
Thanks in advance.

There are no spaces between different elements in a row. so, you have to scan each row as a string and then count no. of ones. your present approach is scanning whole row as a single number at a time.

1 Like
why is this code giving SIGSEGV fault.
please help

@utan In line 24, you are incrementing l instead of j.

Thanks! Got AC :slight_smile:

Why I am geeting this error…while it’s running fine in other ide.

Can anyone help?