I am getting wrong output,

i am getting wrong output,
please look at the code…

code :https://ide.codingblocks.com/s/216418

u need to print it in lexographic order
so take a global vecor
add all elements sort it before printing

please mention the necessary changes in the code

could u try to make these update or i do it for u ?

atleast try once if it is problem for u ask me then

thank you mam, the code is successfull
my code : https://ide.codingblocks.com/s/216408

Great good luck
happy coding