我这个代码怎么改
#include <bits/stdc++.h>
using namespace std;
int t;
int main () {
cin >> t;
while (t--) {
int n, m, cnt = 0;
cin >> n >> m;
string s, s2;
cin >> s >> s2;
for (int i = 0; i < s.size(); i++) {
if (s[i] >= 'A' && s[i] <= 'Z') {
s[i] += 32;
}
}
for (int i = 0; i < s2.size(); i++) {
if (s2[i] >= 'A' && s2[i] <= 'Z') {
s2[i] += 32;
}
}
while (true) {
if (s2.find (s) == string :: npos) {
break;
}
++cnt;
s2.erase(s2.find (s), s2.find (s) + s.size());
cout << s2 << ' ';
}
cout << cnt << endl;
}
return 0;
}