At a shop till, nobody tells the cashier in advance how many things they're buying.
One person brings a single pint of milk. The next brings a whole trolley. The till copes with both — it just keeps adding until you stop putting things down.
Every function you've written so far is less forgiving than that. It wants exactly the number of values it was built for.