No output All Indices Recursion

No output is displayed;
the link of my code :

@sanjit_15
You were not taking n as the input.
I have added cin>>n; to your code.
Now it works fine.