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 is the correct link to your code: https://www.codechef.com/viewsolution/27194752
This will give WA, but doesn’t yet explain the RE:
printf("Enter the no.:",n);
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.
I think you’re confusing
Is it 100 XOR 9, then the array size is too less.