003 grid sweep into a store

✓ Passing This code compiles and runs correctly.

Code

input.k

Actual

sum 14

Expected output

✓ Zig✓ JavaScript
sum 14

Flows

flow ~new click a branch to expand · @labels scroll to their anchor
new (expr: cells, size: 8, source: count: 0[i64])
flow ~new click a branch to expand · @labels scroll to their anchor
new (expr: acc, source: n: 0[i64])
flow ~stored click a branch to expand · @labels scroll to their anchor
stored (source: cells[2].count: 5)
flow ~stored click a branch to expand · @labels scroll to their anchor
stored (source: cells[6].count: 9)
flow ~sweep click a branch to expand · @labels scroll to their anchor
sweep (expr: cells)
flow ~print.ln click a branch to expand · @labels scroll to their anchor
print.ln (expr: "sum {{ acc.n:d }}")

Test Configuration

MUST_RUN