题目题目
错误代码:
#include<bits/stdc++.h>
using namespace std;
int main(){
int n,k;
string h[10];
char a[100];
for(int i=1;i<=n;i++){
cin>>h[i];
}
for(int i=1;i<=k;i++){
cin>>a[i];
}
for(int i=1;i<=n;i++){
for(int j=1;j<=k;j++){
for(int p=0;p<h[i].size();p++){
string rtt=h[i];
if(rtt[p]==a[j]){
cout<<h[i]<<endl;
break;
}
}
}
}
}
求条!