What's fin? Since some value is being extracted from it and inserted into k it would be some form of a stream. file stream? keyboard stream? Can't tell
What data type is k? By the decrement prefix operator a GUESS would be some form of an integer type.
Or could be a custom type with a prefix decrement operator.
What type of container is gr? Looks like an STL container with an insert member function. Maybe a std::vector, std::deque or std::list?
Your insert function theoretically inserts a new set element with a decremented value of k. If the value doesn't already exist in gr.
Your compiler may or may not decrement k before it inserts the value into gr. It may optimize the decrement to be performed AFTER the std::set::insert.