I am getting an error saying function does not take 2 arugment. Dont know how to fix this. Please help.
#include <iostream>
#include <cmath>
using namespace std;
void set_sides(int,int,int&);
int main()
{
int Area, Volume;
cout << "Surface Area and Volume of a Cubic Prism. " << endl
<< "Please enter a length of the Prism " << endl;
cin >> Area;
set_sides(Area, Volume);
cout << "\n The volume of a cube is: " << Volume << endl;
return 0;}
void set_sides(int d,int& vol)
{vol =d*d*d;}