122 day12 part2

✗ Failing This test is currently failing.

Failed: backend-exec

Error Details

output_emitted.zig:125:19: error: unused local constant

Failure Output

Showing last 10 of 19 lines
                            ^~~~~~~~~~~
output_emitted.zig:181:29: note: previous declaration here
        {             const result_c1_0 = main_module.parse_val_event.handler(.{ .s = s, .n = n, .i = i });
                            ^~~~~~~~~~~
output_emitted.zig:243:29: error: local constant 'result_c1_0' shadows local constant from outer scope
        {             const result_c1_0 = main_module.obj_sum_event.handler(.{ .s = s, .n = n, .i = v.next, .acc = acc + v.sum, .red = @max(red, v.isred) });
                            ^~~~~~~~~~~
output_emitted.zig:229:29: note: previous declaration here
        {             const result_c1_0 = main_module.skip_str_event.handler(.{ .s = s, .n = n, .j = i + 1 });
                            ^~~~~~~~~~~

Code

input.k

Expected output

6
4
0
6

Flows

subflow ~skip-str click a branch to expand · @labels scroll to their anchor
if (j < n)
subflow ~num click a branch to expand · @labels scroll to their anchor
if (i < n)
subflow ~parse-val click a branch to expand · @labels scroll to their anchor
if (s[@intCast(i)] == 91)
subflow ~arr-sum click a branch to expand · @labels scroll to their anchor
if (s[@intCast(i)] == 93)
subflow ~obj-sum click a branch to expand · @labels scroll to their anchor
if (s[@intCast(i)] == 125)
subflow ~sum-no-red click a branch to expand · @labels scroll to their anchor
capture (source: len: 0[i64])
flow ~read-lines click a branch to expand · @labels scroll to their anchor
read-lines (path: "tests/regression/810_AOC_2015/810_122_day12_part2/input.txt")

Test Configuration

MUST_RUN