/*
                     Exercise Testing Environment
                             2007.12.06.
Expected output:
----------------
STL Exercises

First Exercise: 0.5

Second Exercise: cat mouse

 */

#include <iostream>

#include "exercises.hh"

int main(int argc, char *argv[])
{
  std::cout << "STL Exercises" << std::endl;

  std::cout << "\nFirst Exercise: ";
  std::list<std::pair<int, double> > l;
  l.push_back(std::make_pair(1, 2.3));
  l.push_back(std::make_pair(3, 4.1));
  l.push_back(std::make_pair(5, 5.0));
  l.push_back(std::make_pair(2, 1.0));
  l.push_back(std::make_pair(4, 2.9));
  l.push_back(std::make_pair(9, 7.0));
  std::cout << add_subtract(l) << std::endl;

  std::cout << "\nSecond Exercise: ";
  std::multiset<MyType, MyTypeLess> ms;
  ms.insert(MyType(1, "dog"));
  ms.insert(MyType(1, "cat"));
  ms.insert(MyType(1, "dragon"));
  ms.insert(MyType(25, "tiger"));
  ms.insert(MyType(25, "mouse"));
  std::map<int, std::string> m = minimum_value(ms);
  std::cout << m[1] << " " << m[25] << std::endl;

  return 0;
}