When i compile it come up with an error that says that control reaches end of
non-void function why isn't it working.
#include <iostream>
#include <ctime>
#include <cstdlib>
using namespace std;
//int even(int &m);
//int odd(int &n);
int main()
{
int x,sum1, sum2;
srand(time(0));
for (int i=0; i< 10; i++)
{
x=1+ rand() % 10;
cout << " "<< x;
sum1 += even(x);
sum2 += odd(x);
}
cout <<endl;
cout << "sum of the even is "<<sum1<<endl;
cout << "Sum of the odd is "<<sum2<<endl;