struct S { int y,i; }; bool operator<(S const&a, S const&b){ return a.y