How to take multiple string input without making a character array?

how to take multiple string input without making a character array?

@akshat2806

N is number of strings to take input
Vec is string vector to hold strings

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

If your doubt is resolved please close it