RECURSION-SUBSEQUENCES getting wrong answer

https://ide.codingblocks.com/s/51826
https://hack.codingblocks.com/contests/c/537/353
please rectify what is wrong in this code.

https://ide.codingblocks.com/s/51864 Made the small changes now this should work fine.
You have passed string but declared it as char a[10000],