Main.cc:12:13: error: redefinition of ‘int map [300][300]’ int map[N][N] ; ^ Main.cc:9:5: note: ‘int map [300][300]’ previously declared here int map[N][N]; // 棋盘,1表示可放,0表示不可放 ^~~