C++ 100 % with one loop
Code
# Code
```cpp []
class Solution {
public:
    int areaOfMaxDiagonal(vector<vector<int>>& dimensions) {
        int l = dimensions.size();
        double max_diag = 0;
        int max_area = 0;
        for(int i=0;i<l;i++){
            double diag = sqrt(dimensions[i][0]*dimensions[i][0]+dimensions[i][1]*dimensions[i][1]);
            if(diag>max_diag){
                max_diag = diag;
                max_area = dimensions[i][0]*dimensions[i][1];
            } else if(diag==max_diag){
                int area = dimensions[i][0]*dimensions[i][1];
                if(area>max_area)max_area=area;
            }
        }
        return max_area;
    }
};
```
['C++']