What's the problem in my code

https://ide.codingblocks.com/s/269684.
I’m first calculating fib of every number in the array, and replacing the given array value with the fib value I got. then I’m building a segment tree for the range query and at last I’m outputting the value of gcd in the l to r range

@aryan fib of 10^9 is very large and will get out of bound therefore find fib%mod in the fib array

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.