2 testcases not working

please tell the problem in code

@Akshita99, instead of getline use cin .your code will pass, there seems to be some error with test cases
corrected code :- https://ide.codingblocks.com/s/263945