Overview
Comment: | added free() |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
292a60d81ca4c2f80e4684212484e6fd |
User & Date: | nnz on 2024-12-04 18:53:09 |
Other Links: | manifest | tags |
Context
2024-12-05
| ||
10:53 | 202405 -- download input, prepare skeleton check-in: 3ff4b256a5 user: nnz tags: trunk | |
2024-12-04
| ||
18:53 | added free() check-in: 292a60d81c user: nnz tags: trunk | |
18:48 | uses dynamic memory check-in: c73a56324d user: nnz tags: trunk | |
Changes
Modified aoc2015.c from [1552da6bee] to [1008e51170].
︙ | |||
83 84 85 86 87 88 89 90 91 92 93 94 95 96 | 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 | + | } house[nhouse].row = p[who].row; house[nhouse].col = p[who].col; nhouse += 1; } who = 1 - who; // santa; bot; santa; bot; ..., ..., ... } free(house); printf("Santa and santa bot delivered at least 1 present to %u houses.\n", nhouse); } void aoc201502(char *data, size_t len) { (void)len; // unused argument unsigned sqf = 0, f = 0; for (;;) { |
︙ |