We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 701d596 commit 5d4250aCopy full SHA for 5d4250a
solvedac_class_3/2630.c
@@ -60,14 +60,14 @@ int main()
60
61
scanf("%d", &n);
62
map = (int **) malloc(sizeof(int *) * (n));
63
- for (int i = 0; i < n + 1; ++i)
+ for (int i = 0; i < n; ++i)
64
*(map + i) = (int *) malloc(sizeof(int) * (n));
65
for (int i = 0; i < n; ++i)
66
for (int j = 0; j < n; ++j)
67
scanf("%d", (*(map + i) + j));
68
temp_count = ft_solve(map, 0, 0, n);
69
printf("%d\n%d", temp_count.white, temp_count.blue);
70
71
free(*(map + i));
72
free(map);
73
return (0);
0 commit comments