What does it mean by SIGSEGV?

How can i correct it? Here is my code… https://www.codechef.com/viewsolution/27155842

Line 42
Instead of scanf("%d",a[i]) maybe it should be scanf("%d", a + i)

2 Likes

This might help you.