It is running perfectly in Codeblocks. Then what is problem with codechef ide…Here is my code…https://www.codechef.com/submit/FIBEASY.....It is showing some SIGSEGV.
This will give WA, but doesn’t yet explain the RE:
printf("Enter the no.:",n);
2 Likes
You can’t define an array of 100^9.
As far as my coding knowledge is concerned, you can only define an array up to 10^7 and not more than that.
Here is the mistake:
#define L (100^9)
.
.
.
.
long long int n,t,p,a[L],b[L],i;
And also remove what @ssjgz told you.
2 Likes
I think you’re confusing ^
with pow
.
1 Like
Is it 100 XOR 9, then the array size is too less.