5. What is the output of the following C++ program?

#include <algorithm>
#include <iostream>
#include <list>
#include <vector>

class Int
{
public:
    Int(int i = 0) : m_i(i) { }

public:
    bool operator<(const Int& a) const { return this->m_i < a.m_i; }

    Int& operator=(const Int &a)
    {
        this->m_i = a.m_i;
        ++m_assignments;
        return *this;
    }

    static int get_assignments() { return m_assignments; }

private:
    int m_i;
    static int m_assignments;
};

int Int::m_assignments = 0;

int main()
{
    std::list<Int> l({ Int(3), Int(1) });
    l.sort();
    std::cout << (Int::get_assignments() > 0 ? 1 : 0);

    std::vector<Int> v({ Int(2), Int() });
    std::sort(v.begin(), v.end());
    std::cout << (Int::get_assignments() > 0 ? 2 : 0) << std::endl;

    return 0;
}