just add 2 if statements to check for badly defined rectangles
\nbool isRectangleOverlap(vector<int>& rec1, vector<int>& rec2) {\n        if (rec1[0] == rec1[2] || rec1[1] == rec1[3]) return false;\n        if (rec2[0] == r
```\nbool isRectangleOverlap(vector<int>& rec1, vector<int>& rec2) {\n        if (rec1[0] == rec1[2] || rec1[1] == rec1[3]) return false;\n        if (rec2[0] == rec2[2] || rec2[1] == rec2[3]) return false;\n        return rec1[0] < rec2[2] && rec2[0] < rec1[2] && rec1[1] < rec2[3] && rec2[1] < rec1[3];\n    }\n```
['C']