Kindly debug the code

@sr30
You forgot to take string s as input
do cin>>s after string s;

If your doubt is resolved please mark it as closed.

1 Like