you should change the function head to this:
int homework(int arr[], const int size, bool loopType)
you cant use default parameters in the implementation. Dont use BIG LETTER as var names, but only for
constants. And "default" is an reserverd keyword (in switch loopes)
your coding
if (default == 1) {
}
else if (default != 1)
resolves to this
if (loopType) {
}
else {
you can do it in one loop
for (int i = 0; i < SIZE; i++)
{
arr[i] = rand() % 100; cout << arr[i] << " "; }