Skip to content

Commit 5c5363e

Browse files
committed
fix typo caused build error
1 parent 4727c83 commit 5c5363e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎algorithms/cpp/maximalRectangle/maximalRectangle.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ int maximalRectangle(vector<vector<char> > &matrix) {
5656
if (matrix.size()<=0 || matrix[0].size()<=0) return 0;
5757
int row = matrix.size();
5858
int col = matrix[0].size();
59-
vector< vector<int> > heights(row, vector<int> col);
59+
vector< vector<int> > heights(row, vector<int>(col));
6060

6161
int maxArea = 0;
6262
for(int i=0; i<row; i++){

0 commit comments

Comments
 (0)