Code not producing output

This code does not display any output. Can you please help me rectify this

hello @prerna_gupta31

image

here it should be inp[j]

Thanks it worked but inorder to sort it lexographically I made changes and it’s not working https://ide.codingblocks.com/s/341192

use vector of string instead of array of string ,because we dont know count of valid strings .
so vector will br a better option

https://ide.codingblocks.com/s/341196 I used vector still it is not producing any output

pass vector as reference

check this->