coins/TwelveCoins.cpp
/**
 * @brief: Compares the weights of each side of the scale, a and b, to see which is heavier.
 * 
 * @return:Returns 0 for equal, 1 for a is heavier than b, 2 if a is lighter than b, and 3 if error
 */
@brief: Compares the weights of each side of the scale, a and b, to see which is heavier.

@return:Returns 0 for equal, 1 for a is heavier than b, 2 if a is lighter than b, and 3 if error
@brief : Compares the weights of each side of the scale a and b to see which is heavier . @return : Returns 0 for equal 1 for a is heavier than b 2 if a is lighter than b and 3 if error
int TwelveCoins::weigh(std::vector<int> a, std::vector<int> b)
{
    int sumA, sumB = 0;
    sumA = sum(a);
    sumB = sum(b);
    if (sumA == sumB) {
        return 0;
    } else if (sumA > sumB) {
        return 1;
    } else if (sumA < sumB) {
        return 2;
    } else {
        std::cout << "ERROR: WeighingBalls::weigh\n";
        return 3;
    }
}
int TwelveCoins :: weigh ( std :: vector < int > a , std :: vector < int > b ) { int sumA , sumB = 0 ; sumA = sum ( a ) ; sumB = sum ( b ) ; if ( sumA == sumB ) { return 0 ; } else if ( sumA > sumB ) { return 1 ; } else if ( sumA < sumB ) { return 2 ; } else { std :: cout << " \n " ; return 3 ; } }
@brief: Compares the weights of each side of the scale, a and b, to see which is heavier.
@brief : Compares the weights of each side of the scale a and b to see which is heavier .
//odd ball in c