#include using namespace std; template bool in_quote(const Container& cont, const std::string& s) { return std::search(cont.begin(), cont.end(), s.begin(), s.end()) != cont.end(); } int main(){ int q; cin >> q; for(int a0 = 0; a0 < q; a0++){ char s[10000]; cin >> s; int num = 0; for(char& c : s) { if (c == 'a') { // cout << s.find("a",num,1); // num = s.find(c); //cout << " " << s; } } char str[] = "hackerrank"; char * pch; //cout << "Looking for the "<< str[0]<<" character in "<= 10) cout << "YES" << endl; else cout << "NO" << endl; // your code goes here // std::string str = "why waste time leaarning, when ignorance is instantaneous?"; // str.find() can be used as well //std::cout << std::boolalpha << in_quote(str, "learning") << '\n'<< in_quote(str, "lemming") << '\n'; // std::vector vec(str.begin(), str.end()); // std::cout << std::boolalpha << in_quote(vec, "learning") << '\n' << in_quote(vec, "lemming") << '\n'; } return 0; }