What is the problem with this code?

I have written the same code as taught in the lesson but still compilation error is coming.

Hey
Can you post your code?

maam, I have uploaded it. plzz do the needful

Hey
Your base case should be for n=1, otherwise it’ll do nothing
if (n == 1)

{

cout << "Move ring from " <<src<<

" to" << dest;

return ;

}

but sir told us in the lessons that we can take base case as either 0 or 1

Hey base case has to be 1

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.