Skip to content

Commit 701d596

Browse files
committed
1780
1 parent 623d7e8 commit 701d596

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

solvedac_class_3/1780.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,14 @@ int main()
6060

6161
scanf("%d", &n);
6262
map = (int **) malloc(sizeof(int *) * (n));
63-
for (int i = 0; i < n + 1; ++i)
63+
for (int i = 0; i < n; ++i)
6464
*(map + i) = (int *) malloc(sizeof(int) * (n));
6565
for (int i = 0; i < n; ++i)
6666
for (int j = 0; j < n; ++j)
6767
scanf("%d", (*(map + i) + j));
6868
temp_count = ft_solve(map, 0, 0, n);
6969
printf("%d\n%d\n%d", temp_count.minus, temp_count.zero, temp_count.plus);
70-
for (int i = 0; i < n + 1; ++i)
70+
for (int i = 0; i < n; ++i)
7171
free(*(map + i));
7272
free(map);
7373
return (0);

0 commit comments

Comments
 (0)