ACODE(spoj) wrong ans

https://ide.codingblocks.com/#/s/13260
ACODE (spoj) problem on online platform is not passing the test cases,my answer for given test case is correct but at submission no test cases pass.

Hello Sarthak ! It’s Ranjan this side. your code seems fine but you have to print only the count of such strings i.e. size of your vector but you are printing strings as well . got it?