#include<iostream>
using namespace std;
#include<algorithm>
class point
{
public:
point() :x(0),y(0){};
int x;
int y;
};
bool cmp(point a, point b)
{
return a.x > b.x;
}
int main()
{
point tmpa[2];
tmpa[0].x = 1; tmpa[0].y = 2;
tmpa[1].x = 3; tmpa[1].y = 2;
sort(tmpa, tmpa + 2,cmp);
//cout << a[0] << a[1] << a[2] << endl;
cout << tmpa[0].x << " " << tmpa[0].y << endl;
return 1;
}
using namespace std;
#include<algorithm>
class point
{
public:
point() :x(0),y(0){};
int x;
int y;
};
bool cmp(point a, point b)
{
return a.x > b.x;
}
int main()
{
point tmpa[2];
tmpa[0].x = 1; tmpa[0].y = 2;
tmpa[1].x = 3; tmpa[1].y = 2;
sort(tmpa, tmpa + 2,cmp);
//cout << a[0] << a[1] << a[2] << endl;
cout << tmpa[0].x << " " << tmpa[0].y << endl;
return 1;
}