# include <stdio.h> # include <memory.h> # include <stdbool.h> int count = 0; bool is_safe(int row, int col, int chessp[][8]) { int i, j; /*判断列*/ for(j = 0; j < row; ++j) { if (chessp[j][col]) { return false; } } /*判断左上*/ for (i = row-1, j = col-1; i >= 0 && j >=0;...