#include #include #include #define MAX_SIZE 50 typedef struct GraphType { int landCount; int map[MAX_SIZE][MAX_SIZE]; bool visited[MAX_SIZE][MAX_SIZE]; }GraphType; int aroundW[8] = {-1, 0, 1, 1, 1, 0, -1, -1}; int aroundH[8] = {-1, -1, -1, 0, 1, 1, 1, 0}; int w, h; void init(GraphType *g) { g->landCount = 0; for(int i = 0; i visited[i][j] = false; } } } void insert_map(GraphType* g, int w, int h..