for this code I am getting run time error .Abort signal from abort(3) (SIGABRT)’

  abort, c++, runtime-error
 #include <iostream>
using namespace std;
void reverse(int A[],int N){
    
    for(int i=0;i<N/2;i++){
        swap(A[i],A[N-i-1]);
    }
        for(int i=0;i<N;i++){
        cout<<A[i];
    }
}

int main() {
    //code
    int T,N,A[N];
    cin>>T>>N;
    for(int i=0;i<N;i++){
        cin>>A[i];
    }
    reverse(A,N);
    //please help it its getting into my nerves

    return 0;
}

please help me resolve this problem
for this code I am getting run time error .Abort signal from abort(3) (SIGABRT)’

Source: Windows Questions C++

LEAVE A COMMENT