HELP please. I'm new to this so please be nice and descriptive. I coded this in Visual studio and the goal is to find out how many of each L, M, and S trays I need based on the number of people attending. I am trying to divide by remainder and I'm getting an error on the last two lines. "expression must have integral or unscoped enum type" --- I don't even know what that means. English, please?
#include <iostream>
#include <iomanip>
#include <cmath>
using namespace std;
int main()
{
//prompt user
cout << "Please enter number of guests attending event:";
double attendees;
cin >> attendees;
double large_trays = attendees / 7;
double medium_trays = large_trays % 3;
double small_trays = medium_trays % 1;