Once I run my program, I keep getting the error message: Run-Time Check Failure #2 - Stack around the variable 'numTimes' was corrupted. Would someone be able to explain to me what that error message means and how I would start to fix it. Any help is greatly appreciated.
#include <iostream>
#include<cstdlib>
#include<ctime>
using namespace std;
void loadRandom666Array(int freq[], int numRolls);
bool printHistogram(int freqDist[], int numRolls);
const int MAX_SIZE = 16;
int main()
{
int numTimes, freq[MAX_SIZE], seed;
seed = time(0);
srand(seed);
cout<<"Enter how many times the dice should be rolled: ";
cin>> numTimes;