Problem Point in the Figure, гърмят ми #54, #55 тест. Защо?

#include <iostream>
using namespace std;
int main(){
int h, x, y;
cin>>h;
cin >> x;
cin >> y;
bool outRectangle1 = (y > h) && (x < h) || (y > h) && (x > 2 * h) 
|| (x > 3 * h) && (y >= 0)||(x<0)||(y<0);
bool outRectangle2= (y > h)&&(x < h)||(y > h)&&(x > 2 * h)
||(y>4*h)&&((x>h)&&(x<2*h));
bool inRectangle1 = ((x > 0)&& (x < 3*h)) && (y < h&&y>0);
bool inRectangle2=(x<2*h&&x>h)&&(y>h&&y<4*h);
bool commonBorder = (x >h&& x < 2 * h) && (y == h);
if (outRectangle1 || outRectangle2) {
    cout << "outside" << endl;
}
else if (inRectangle1 || inRectangle2||commonBorder) {
    cout << "inside" << endl;
}
else {
    cout << "border" << endl;
}
return 0;
}