#include
using namespace std;
void reversearray(int a[],int n){
int temp,i;
for(i=0; i<n; i++){
i=temp;
a[i]=i;
a[i]=temp;
}
cout<<a[i]<<endl;
}
int main() {
int n;
cin>>n;
int a[n];
for(int i=0; i<n; i++){
cin>>a[n];
}
cout<<reversearray(a,n)<<endl;
return 0;
}
i want to know where i am wrong in this code