I have to develop a code that compares two groups (A & B) of 3 numbers each. If one of the numbers is higher than the other one it receives a point, if both numbers are equal then none of the groups receive a point.

The problem I have is that when 2 numbers are equal the score of the group B increases by one while the score group A doesn't increase. When the numbers are different the program adds correctly the points.

Here is the code.

```
#include <iostream>
using namespace std;
int main (){
    int a[3], b[3], totala=0, totalb=0, final[2]{0,0};

        cin >> a[0];
        cin >> a[1];
        cin >> a[2];

        cin >> b[0];
        cin >> b[1];
        cin >> b[2]; 

    if (a[0]>b[0]) {
        totala++;
    } else {
        totalb++;
    }
    if (a[1]>b[1]) {
        totala++;
    } else {
        totalb++;
    }
    if (a[2]>b[2]) {
        totala++;
    } else {
        totalb++;
    }
    if (a[0]==b[0]) {
        totala = totala;
        totalb =totalb;
    } else if(a[1]==b[1]) {
        totala = totala;
        totalb =totalb;
    } else if(a[2]==b[2]) {
        totala = totala;
        totalb =totalb;
    }

    final[0] = totala;
    final[1] = totalb;

    cout << final[0] << " " << final [1] << endl;

    return 0;
}

```