What is wrong in my code

here is my code

hello @Parmeet-Kalsi-1631789033630118
ur comparator is not correct .
for ex for input 2 21 it will order them as 212 but correct order is 221.
to rectify it.
use this comparator
image

also use cin>>s[j] to read string because getline will read all string at once .