Are there any errors in the following program? If so, please point them out and correct them. Explain why those errors are wrong.
#include
using namespace std;
void display(int x[], int size);
void compute(const int x[], int size);
int main()
{
int y[5]={0};
compute(y,5);
}
void display(int x[], int size)
{
for (int i=0; icout << x[i];
}
void compute (const int x[], int size)
{
for )int i=0; ix[i]=2*i+1;
size=size*2;
display (x, size);
}