#wrong output

3 messages · Page 1 of 1 (latest)

stark haven
#

int main(){
int n;
int arr[n];
cin>>n;

for (int i = 0; i<n; i++) {
cin>>arr[i];
}

for (int i = n-1; i>=0; i--) {
cout<<arr[i]<<" ";
}


return 0;

}

zenith ospreyBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For more information use !howto ask.

stark haven
#

!solved