My issue
My code
#include <iostream>
#include <set>
#include <algorithm>
using namespace std;
int main() {
// your code goes here
string s;
cin>>s;
sort(s.begin(), s.end());
int n;
cin>>n;
for(int i=0;i<n;i++)
{
string str;
cin>>str;
sort(str.begin(), str.end());
if(includes(str.begin(),str.end(), s.begin() , s.end()))
std::cout << "Yes" << std::endl;
else std::cout << "No" << std::endl;
}
return 0;
}
Problem Link: ALPHABET Problem - CodeChef