map=new Vector<Vector<Integer>>(m);
for(int i=0;i<m;++i) {
Vector<Integer>temp=new Vector<Integer>();
for(int j=0;j<m;++j) {
temp.add(-1);
}
map.add(temp);
}
map=new Vector<Vector<Integer>>(m);
for(int i=0;i<m;++i) {
Vector<Integer>temp=new Vector<Integer>();
for(int j=0;j<m;++j) {
temp.add(-1);
}
map.add(temp);
}