About output of code

my code show an error
“/bin/run.sh: line 4: 19 Killed ./exe”
could you say that why it shows an error like this & what is solution?

code is https://ide.codingblocks.com/s/230868

@abhisek905 range of n and m is 10^9 so you cannot run a for loop to find the nth fibonacci number, you have to use Matrix Exponentiation to find the fib(n) ,also sum of first n fibo number is fib(n+2);
so sum from n to m will be (fib(m+2)%m-fib(n+1)%m+m)%m

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.