SQL, 19 bytes
SELECT SUM(a)FROM t
Our rules allow SQL to input via a pre-existing named table (in this case table t with INT field a), so just SUM it up and output the results.
Works for however many rows are in the input table.
BradC
- 6.9k
- 1
- 15
- 34