if (x < other.x)
{
- printf("Case 1\n");
+OK printf("Case 1\n");
s.x = x;
s.y = y;
s.w = other.x - x;
}
else if (x2() > other.x2())
{
- printf("Case 2\n");
+OK printf("Case 2\n");
s.x = other.x2()+1;
s.y = y;
s.w = w - s.x;
}
else if (y < other.y)
{
- printf("Case 3\n");
+OK printf("Case 3\n");
s.x = x;
s.y = y;
s.w = w;
}
else if (y2() > other.y2())
{
- printf("Case 4\n");
+OK printf("Case 4\n");
s.x = x;
s.y = other.y2()+1;
s.w = w;