#include <iostream>
#include <conio.h>
using namespace std;
#define COUNT 10
void main()
{
void print_NUM(void);
int add_values(void);
void print_out(int);
int SUM;
print_NUM();
SUM=add_values();
print_out(SUM);
}
void print_NUM()
{
cout << "This program adds " << COUNT << " integers\n";
cout << "Please enter " << COUNT << " integers to be added\n";
}
I can't run it because it said that the main should be int but this is a direct copy from my lecture notes and the only way to get the answer that I need is when I use int main instead. Why is that?