In view of delay of editorials, I had a discussion with @mgch and @admin , and we decided that due to issues with current Editorialist, Problem Tester (Suchan Park) will now write the editorials. I assure you that this task is at highest priority for contest admin @mgch and @admin and they will try their best to provide you guys with quality editorials of the problems.
Solving div2 Questions from div1 will not affect your ratings. In case they do, it will be a bug and you can get opportunity of getting codechef laddus from @admin X)
There are multiple issues with your code, i won’t tell you the exact issues. But i would recommend you to clean your code first and use MOD whenever required. Read each expression in your code and ask yourself whether the MOD operation is really required.
One example is this line:
base_f[i] = (base_f[i - 1] % MOD + base_f[i - 2] % MOD) % MOD;
base_f[i - 1] is already smaller than MOD so using another mod just makes it messy.
Once you do that, submit again and if your solution is still failing link back your latest solution in comment and i will help.