Please explain set in more detail

Please give program illustration

https://www.geeksforgeeks.org/set-in-cpp-stl/

Please read this and after it if u have any doubt plz let me know.

set <int, greater > gquiz1;

i havent understood the above line,what is greater and why we are using it

Greater is just a comparator u can also read about them. Comparators just allow u to custom order the Elements in the container. greater() helps to order elements in descending order.