I'm having a problem compiling this program it gives me the following errors:
Severity Code Description Project File Line Suppression State
line20 type name is not allowed
line 20 identifier slices is undefined
//main
#include <iostream>
#include "header.h"
using namespace std;
int main()
{
{
int x;
int y;
int placehold;
cout << "Enter slices eaten by each person (up to 10 ppl)\n";
int slices[10];
for (x = 0; x < 10; x++)
{
cin >> slices[x];
}
}
int mode = findMode(slices[10], int);
cout << "Mode of slices eaten is" << mode;
}