We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a2d1d29 commit 1a06e15Copy full SHA for 1a06e15
algorithms/cpp/maximalRectangle/maximalRectangle.cpp
@@ -56,7 +56,7 @@ int maximalRectangle(vector<vector<char> > &matrix) {
56
if (matrix.size()<=0 || matrix[0].size()<=0) return 0;
57
int row = matrix.size();
58
int col = matrix[0].size();
59
- vector< vector<int> > heights(row, vector<int> col);
+ vector< vector<int> > heights(row, vector<int>(col));
60
61
int maxArea = 0;
62
for(int i=0; i<row; i++){
0 commit comments