HELP PLEASE ASAP! I don't know what is wrong with my code, it's suppose to output the same given output. C++ program.
#include //Input/Output Library
#include //Srand
#include //Time to set random number seed
#include //Math Library
#include //Format Library
using namespace std;
//User Libraries
//Global Constants, no Global Variables are allowed
//Math/Physics/Conversions/Higher Dimensions - i.e. PI, e, etc...
//Function Prototypes
void init(int [],int);//Initialize the array
void print(int [],int,int);//Print the array
void revrse(int [],int);;//Reverse the array
//Execution Begins Here!
int main(int argc, char** argv) {
//Set the random number seed
srand(static_cast (time(0)));
//Declare Variables
const int SIZE=50;
int test[SIZE];
//Initialize or input i.e. set variable values
init(test,SIZE);
//Display the outputs
print(test,SIZE,10);
//Reverse the Values
revrse(test,SIZE);
//Display the outputs
print(test,SIZE,10);
//Exit stage right or left!
return 0;
}
void init (int test[],const int x) {
for (int i=0; i >test[i];
}
}
void revrse(int test[],int SIZE){//Reverse the array
int test1[SIZE];
for(int i=0; i
test1[i] = test[SIZE-i-1];
}
for(int i=0; i
test[i]=test1[i];
}
}
void print (int test[] , int SIZE, int perlin) {
for(int i=0; i
cout<
if(i%perlin==(perlin-1))
cout<
}
}

