My issue
My code
#include <iostream>
using namespace std;
int main() {
// your code goes here
string s;
cin>>s;
int n;
cin>>n;
while(n--)
{
string k;
cin>>k;
int i,j;
int a=s.length();
int b=k.length();
int count=0;
for(i=0;i<a;i++)
{
for(j=0;j<b;j++){
if (s[j]==k[i])
{
count++;
}
}
}
if (count==b)
{
cout<<"YES"<<endl;
}
else
{
cout<<"NO"<<endl;
}
}
return 0;
}
Problem Link: ALPHABET Problem - CodeChef