Skip to content

Commit 907b0f3

Browse files
author
gdqyn
committed
modify wordSearch.cpp complile error
1 parent ae1f15b commit 907b0f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wordSearch/wordSearch.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ bool exist(vector<vector<char> > &board, string word) {
5959
int col = board[0].size();
6060
//using a mask to mark which char has been selected.
6161
//do not use vector<bool>, it has big performance issue, could cause Time Limit Error
62-
vector< vector<int> > mask(row, vector<int> col);
62+
vector< vector<int> > mask(row, vector<int>(col, 0));
6363

6464
for(int i=0; i<board.size(); i++) {
6565
for(int j=0; j<board[i].size(); j++){

0 commit comments

Comments
 (0)