I need to adapt my lottery ticket program. HELP

I was assigned to write the following program :
Create a program that automatically picks six lottery numbers for each dollar a
customer pays. The first five numbers must all be unique (non-repeating), and must
all be within the range 1 through 50 inclusive, while the sixth number can be any
number within the range 1 through 60 inclusive, meaning that the number may
even be the same as one of the first 5 numbers.
The program should prompt the customer for how many dollars he or she wishes
to spend, and then produce that many sets of six numbers.
Demonstrate the use of the following in your solution:
• Iteration (Looping)
• Arrays or Vectors or both (Your choice)
• Random number generator
For this project keep your entire solution in one file.

I have the following code :

#include <iostream>
#include <ctime>
#include <cstdlib>
#include <iomanip>

using namespace std;

int main() {
srand(time(NULL));
int n, num;
bool found;
cout << "How many dollars do you want to spend: ";
cin >> n;
const unsigned int sizelot = 6;
int lotticket[sizelot];
for (int i = 0; i < n; ++i) {
for (int j = 0; j < 5; ++j) {
found = false;
num = 1 + (rand() % 60);
for (int k = 0; k < j; ++k) {
if (lotticket[i][j] == num) {
found = true;
break;
}
}
if (!found) {
lotticket[i][j] = num;
}
}
lotticket[i][5] = 1 + (rand() % 60);
}
for (int i = 0; i < n; ++i) {
for (int j = 0; j < 6; ++j) {
cout << setw(2) << lotticket[i][j] << " ";
}
cout << endl;
}
return 0;
}

My professor complained that we did not learn how to use pointers or how to use bool found.

I can't get my program to run without either.
Topic archived. No new replies allowed.