I'm having trouble with the code below. I'm supposed to write a function but I wanted to get the basics down first and I don't understand why my code below isn't working. Any help would be greatly appreciated.
//Write a function that returns the sum of the series 1! + 2!
// + 3! + 4! + ... + n! where n is an integer passed to the
//function as an argument.
using namespace std;
int Sum(int n)
cout << " Enter an integer. " << endl;
cin >> n;