long long a,b;
long long d;
if (a[d] = 42)
a[d] = b[d];
if (b[d] = 0)
Format your code properly or give a link. Regarding SIGSEGV, go through this article.
You probably are coding for TEST.
There are a few corrections I could suggest in your code.
- You are trying to access a[1000000000000…] where as the array a has a size much less than that.
a[d]= 42should be
a[d]==42. (though you are not getting SIGSEGV for this).
printf("%d",&b[d]);would print the address of b[d]. to print the value, code must be
- you will also have to print a newline after every output you print. as
- And most important of all, the pattern you are using to code is not correct. You will have to code it as: input 1 number, check it for equality with 42, and print or abort accordingly. There is no need to store the inputs.
For getting an idea of correct codes to TEST, you can view others accepted submission.