/*
 * Marc Groenewegen, 2023
 */

#include <iostream>
#include <set>
#include <iterator>


int main()
{
std::set<std::pair <int,int>> mySet;
std::set<std::pair <int,int>>::iterator pos;

  std::cout << "Size: " << mySet.size() << std::endl;

  mySet.insert(std::pair<int,int>(2,7));
  mySet.insert(std::pair<int,int>(4,2));
  mySet.insert(std::pair<int,int>(0,12));

  std::cout << std::endl << "Set's contents: " << std::endl;
  pos=mySet.begin();
  while(pos != mySet.end())
  {
    std::cout << pos->first << " " <<
       pos->second << " " << std::endl;
    pos++;
  }
  std::cout << std::endl;

  std::cout << "Size: " << mySet.size() << std::endl;

  return 0;
}
