I have already wrote this code but it does not work correctly if I entered negative values in the array. What should I do ?!!

```
#include <iostream>
using namespace std;

void maxRow(int arr[][2],int row) {
    for (int i = 0; i < row; i++) {
        int valueMax = arr[i][0];
        for (int j = 0; j < 2; j++) {
            if (arr[i][j] > valueMax) {
                valueMax = arr[i][j];
                cout << valueMax << endl;
            }
        }
    }
}

int main() {
    int numbers[6][2] = {1,10,5,6,7,8,19,89,-2,17,-3,-7};
    maxRow(numbers, 6);
}

```