Please check what is the problem

why line 16 is not working in the code?I’ve tried many way,but nothing works.please run and check

just use cin for string input
instead of using getline