The nightly batch sums arrays and occasionally delivers one addend more than ordered. That 'occasionally' depends on what happens to live in the heap right past the array — delightful to debug. The <= n loop reads a[n], an element that doesn't exist. Off-by-one: the cheapest bug by characters, the most expensive by consequences.
sumArray walks one element too far: its loop condition reads a[n], one past the last valid index. That is a heap buffer over-read — undefined behaviour. Fix the bounds so it sums exactly the n elements.
a[0] .. a[n-1] — never read a[n]n of 0 returns 0 and reads nothinga[n] (one past the end) undefined behaviour, not just "reading a stray value"?n?Valid indices are 0 .. n-1. The loop condition should be i < n, not i <= n.
Hit Submit (or ⌘/Ctrl + ↵) — test results will show up here.