#include <bits/stdc++.h>
using namespace std;
struct example {
int compare_element, b, c;
};
struct cmp {
bool operator() (const example& a, const example& b) const {
return a.compare_element < b.compare_element;
}
};
int main() {
multiset<example, cmp> se;
se.insert({1, 2, 3});
se.insert({1, 5, 6});
cout<<se.size()<<"\n";
for(example e: se)
{
cout<<"{ "<<e.compare_element<<" "<<e.b<<" "<<e.c<<"}\n";
}
example e = *se.find({1, 5, 6});
cout<<"Element found : ";
cout<<"{ "<<e.compare_element<<" "<<e.b<<" "<<e.c<<"}\n";
return 0;
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgpzdHJ1Y3QgZXhhbXBsZSB7CiAgICBpbnQgY29tcGFyZV9lbGVtZW50LCBiLCBjOwp9OwoKc3RydWN0IGNtcCB7CiAgICBib29sIG9wZXJhdG9yKCkgKGNvbnN0IGV4YW1wbGUmIGEsIGNvbnN0IGV4YW1wbGUmIGIpIGNvbnN0IHsKICAgICAgICByZXR1cm4gYS5jb21wYXJlX2VsZW1lbnQgPCBiLmNvbXBhcmVfZWxlbWVudDsKICAgIH0KfTsKCmludCBtYWluKCkgewoKICAgIG11bHRpc2V0PGV4YW1wbGUsIGNtcD4gc2U7CiAgICBzZS5pbnNlcnQoezEsIDIsIDN9KTsKICAgIHNlLmluc2VydCh7MSwgNSwgNn0pOwogICAgY291dDw8c2Uuc2l6ZSgpPDwiXG4iOwoKICAgIGZvcihleGFtcGxlIGU6IHNlKQogICAgewogICAgICAgIGNvdXQ8PCJ7ICI8PGUuY29tcGFyZV9lbGVtZW50PDwiICI8PGUuYjw8IiAiPDxlLmM8PCJ9XG4iOwogICAgfQoKICAgIGV4YW1wbGUgZSA9ICpzZS5maW5kKHsxLCA1LCA2fSk7CgogICAgY291dDw8IkVsZW1lbnQgZm91bmQgOiAiOwogICAgY291dDw8InsgIjw8ZS5jb21wYXJlX2VsZW1lbnQ8PCIgIjw8ZS5iPDwiICI8PGUuYzw8In1cbiI7CgoJcmV0dXJuIDA7Cn0=