for (int column = 0; column < 3; column++) cin >> a[row][column]; a[2][column] = 0;
The variable
column
is created in the
for
statement, and so only exists within the scope of the
for
loop. So on the line
a[2][column] = 0;
there is no such variable.
In future please include the exact text of any error messages with your question. Especially as compiler errors include the actual line number that it complains about.