Unique strings by set

sir i am not able to understand the 9th and 10 th line explained by sir, so please explain me the working of these two lines of set as set is not explained in any previous video so tell about set also. and is set declaration same as vector one.

code —> https://ide.codingblocks.com/s/479325

hello @tejuschaturvedi0

if we want to convert char array to string object then simply pass char array in string constructor.
in line 9 we are doing the same thing

in line 10 we are simply inserting the string into set using insert function.

set is covered in ur stl playlist so u can study it from there if u are having any difficulty