The Dirty Path

why isn’t this code working properly ?? can please anyone explain ???
The “fib()” function is giving SIGSEGV ( Segmentation fault).

http://www.codechef.com/viewsolution/5192609

And how you want this to be working, when L and R is up to 108 and you have fib up to 105?

this gave SIGSEGV before taking any input… and if I remove the fib() part then it might give wrong answer but not runtime error… @betlista

Wow, I have no idea what is wrong with your code - here is my modification http://ideone.com/rgzPUs, when you uncomment //ab[i]=1; in fib2() there is RTE… I really do not know why…

@bettista The link of ideone is not proper please make the change.