set<int> s = {1,2,3} auto it = s.end(); it--; cout<<*it<<" "; // This refers to last element of a set
auto it = s.end(); it--; cout<<*it<<" ";