Why do I get a SIGSEGV?

Cant access!!

Is it in python?

A segfault basically means you did something bad with pointers. This is probably a segfault:

char *c = NULL;

*c; // dereferencing a NULL pointer
Or this:

char *c = “Hello”;

c[10] = ‘z’; // out of bounds, or in this case, writing into read-only memory
Or maybe this:

char *c = new char[10];

delete [] c;

c[2] = ‘z’; // accessing freed memory
Same basic principle in each case - you’re doing something with memory that isn’t yours.

Hi Folks,
Check out the latest Coding jobs :- http://jobsiit.com/jobs/listing/Computer%20Science

Adobe Systems is hiring Software Engineers
CTC:- 8-30 Lac, Exp:- 0-8 Years, Bangalore

Apply Here:- http://jobsiit.com/jobs/view/1876/Adobe-Systems/Software-Engineer

Why do I get SIGSEGV error for this code http://www.codechef.com/viewsolution/6382701

no, it is c…this is the problem


and this the code
#include <stdio.h>
long long int a[1000006];
int main()
{
long long int n,k,i,co=0,max=0;
scanf("%lld %lld",&n,&k);
for(i=1;i<=n;i++)
{
scanf("%lld",&a[i]);
if(max<a[i])
max=a[i];
}
long long int c[max+1];
for(i=0;i<=max;i++)
c[i]=0;
for(i=1;i<=n;i++)
c[a[i]]++;
for(i=1;i<k;i=i+2)
{
if(c[i]>0)
co++;
}
printf("%lld\n",co);
return 0;
}
thank u…

Pls help me with the runtime error(SIGSEGV)
http://www.codechef.com/viewsolution/6400340

Runtime Error(SIGSEGV) in codechef???
here is my code…
http://www.codechef.com/viewsolution/6420544

Can you please tell why SIGSEGV error in this code.
http://www.codechef.com/viewsolution/6454306

http://www.codechef.com/viewsolution/6583655

why i m getting SIGSEVG?? plz help

why am i getting SIGSEVG ? http://www.codechef.com/viewsolution/6845084

Why do I get SIGSEVG ? http://www.codechef.com/viewsolution/7075835

http://www.codechef.com/viewsolution/7240860
why I am getting sigsevg error

Why do I get SIGSEGV error for this code http://www.codechef.com/viewsolution/7280734
Please help, I haven’t used pointers or functions and it runs perfectly well on code blocks

#include<stdio.h>
int main()
{
int i,n,f=1,j=1;
scanf("%d",&n);
int a[10];
for(i=0;i<n;i++)
scanf("%d",&a[i]);
for(i=0;i<n;i++)
{
f=1;j=1;
while(j<=a[i]){
f=f*j;
j++;
}
printf("%d\n",f);
}
return 0;
}

why am i getting a run time error here?

Why I’m Getting SIGSEVG for this:
https://www.codechef.com/viewsolution/7491075

Can anyone tell me why i am getting run time error(sigsegv) for this
https://www.codechef.com/viewsolution/7491260

Problem: https://www.codechef.com/problems/E1/

Just check if you are accessing any element outside the declared array size,most common error might be in a loop.

I get runtime error, please check and give the answer

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