While running the loop why is it missing the first time when it runs, it does not take any input when runs first time
int main()
{
int T;
cin >> T;
while (T--)
{
string st;
getline(cin, st);
cout << st << endl;
}
}
loop runs for T=1, but does not take any input but gives a new line.Why?