fork download
  1. #include <set>
  2. using namespace std;
  3.  
  4. struct comp
  5. {
  6. bool operator ()(const pair<int, int>& a, const pair<int, int>& b)
  7. {
  8. return a.second < b.second;
  9. }
  10. };
  11. typedef set<pair<int, int>, comp> S;
  12.  
  13. int main()
  14. {
  15. S s;
  16. return 0;
  17. }
Success #stdin #stdout 0s 3464KB
stdin
Standard input is empty
stdout
Standard output is empty