Main.cc:12:13: error: conflicting declaration ‘int map [300][300]’
int map[N][N] ;
^
Main.cc:9:5: note: previous declaration as ‘int map’
int map; // 棋盘,1表示可放,0表示不可放
^~~
Main.cc: In function ‘void dfs_white(int)’:
Main.cc:49:20: error: invalid types ‘int[int]’ for array subscript
if (map[cur][col] == 0) continue;
^
Main.cc: In function ‘void dfs_black(int)’:
Main.cc:74:20: error: invalid types ‘int[int]’ for array subscript
if (map[cur][col] == 0) continue;
^
Main.cc: In function ‘int main()’:
Main.cc:95:25: error: invalid types ‘int[int]’ for array subscript
cin >> map[i][j];
^