我的代码中有一个
a[i].substr(a[i].size() - l - 1, l)//报错
a数组的定义:
string a[1001];
a数组的赋值:
for (int i = 1; i <= n; i++) { cin >> a[i]; }
请问,该怎么改? 完整代码在这