main() { char s[1][1]; s[0][0] = '1'; maximalSquare(&s[0][0],1,1); }
int main() { vector<vector<char> > matrix; int a[][5] = {{1,0,1,0,0}, {1,0,1,1,1}, {1,1,1,1,1}, {1,0,0,1,0}}; for(int i = 0;i < 4;i++) { vector<char> t; for(int j = 0;j < 5;j++) t.push_back(a[i][j]+'0'); matrix.push_back(t); } cout<<maximalSquare(matrix)<<endl; return 0; }