My issue
My code
#include <iostream>
#include <bits/stdc++.h>
using namespace std;
int main() {
// your code goes here
int t;
std::cin >> t;
while(t--)
{
string m,w;
cin>>m>>w;
sort(m.begin(),m.end());
sort(w.begin(),w.end());
std::cout <<(includes(w.begin(), w.end(), m.begin(), m.end())? "YES" : "NO" )<< std::endl;
}
return 0;
}
Problem Link: NAME2 Problem - CodeChef