A[0] not accessible.
Why? & How to solve this
If input is from index 1, A[0] and A[1] not acesible Why?
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin>>n;
string A[n];
for(int i=0;i<n;i++)
getline(cin,A[i]);
for(int i=0;i<n;i++)
cout<<A[i]<<endl;
cout<<"first is "<<A[0];
return 0;
}