RT
#include<iostream> using namespace std; string s[21],ans; int n; int main(){ cin>>n; for(int i=1;i<=n;i++) getline(cin,s[i]); return 0; }
这份代码,我输入n=3,但是只能输入两行字符串,这是为啥?