#include <iostream>
using std::cout;
using std::cin;
using std::endl;

#define NUM_ITERATIONS 3
// Note: the "macro" on the following line should have parentheses.
//       It is given this way to point out the need for parentheses.
#define MAX(a, b)   a > b ? a : b
#define SHOW_PROBLEMS

static int getAnInteger()
{
    cout << "Enter an integer\n";
    int num;
    cin >> num;
    return num;
}

static void define_example()
{
    int biggies[NUM_ITERATIONS];
    for (int i = 0; i < NUM_ITERATIONS; i++)
    {
        cout << "Enter two integers\n";
        int num1, num2;
        cin >> num1 >> num2;
        
        biggies[i] = MAX(num1, num2);
#ifdef SHOW_PROBLEMS
        int num3 = MAX(num1, 42) + 3;
        cout << "num3 is " << num3 << endl;
#endif
    }
    
    cout << "Biggies:\n";
    for (int i = 0; i < NUM_ITERATIONS; i++)
    {
        cout << biggies[i] << " ";
    }
    cout << endl;
}

int main(void)
{
    define_example();
    return 0;
}

