Please help sigsegv

Please helpI’m getting SIGSEGV error I have rechecked my code many times.

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

This is because you ran it without providing custom input.

k can be up to 10^6 digits, but you’re reading it into an array of size 10^5.

3 Likes

@ssjgz doesn’t sigsegv occur only due to blank input while running as you’d told me earlier?

This problem of “blank input” is only in the codechef ide…not when you submit it.

2 Likes

Thanks @aryan12 I got it!

Thanks brother I just forgot about that. That was a silly mistake you know I’m beginner :sweat_smile:.
Can you suggest me where should I start I’m clueless right now i’m in 4th sem😥 Please help.

1 Like