@neelrai906 use cin>>str instead of cin.getline .ur string being read is empty
still getting wrong ans code:https://ide.codingblocks.com/s/232399
@neelrai906
refer to this code