I can't able to submit question recursive sequence(spoj problem) as told by sir

I can’t able to submit question recursive sequence(spoj problem) as told by sir. I am doing same thing as sir did but even test cases are getting wrong
my code link :: https://ide.codingblocks.com/s/151392

Hi @RAHUL
I have made corrections in your code. It will now definitely get accepted.


Changes:
Passing brr and crr by value to functions instead of making them global.

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.