[C++] brute force.
\n\nclass Solution {\npublic:\n    long long largestSquareArea(vector<vector<int>>& bottomLeft, vector<vector<int>>& topRight) {\n        long long ans = 0;\n  
\n```\nclass Solution {\npublic:\n    long long largestSquareArea(vector<vector<int>>& bottomLeft, vector<vector<int>>& topRight) {\n        long long ans = 0;\n        int n = bottomLeft.size();\n\n        for (int i = 0; i < n; ++i) {\n            for (int j = i + 1; j < n; ++j) {\n                if (bottomLeft[i][0] >= topRight[j][0])\n                    continue;\n                if (topRight[i][1] <= bottomLeft[j][1])\n                    continue;\n                if (topRight[i][0] <= bottomLeft[j][0])\n                    continue;\n                if (bottomLeft[i][1] >= topRight[j][1])\n                    continue;\n\n                int x0 = max(bottomLeft[i][0], bottomLeft[j][0]);\n                int y0 = max(bottomLeft[i][1], bottomLeft[j][1]);\n                int x1 = min(topRight[i][0], topRight[j][0]);\n                int y1 = min(topRight[i][1], topRight[j][1]);\n\n                int side = min(abs(x1 - x0), abs(y1 - y0));\n                ans = max(ans, 1LL * side * side);\n            }\n        }\n\n        return ans;\n    }\n};\n```
['C++']