Pass matrix by reference and edit the first row.

add_to_row(x, row, y)

Arguments

x

Integer matrix

row

Index of row to modify

y

value to add