C++ all_of
cpp\nint countConsistentStrings(string allowed, vector<string>& words) {\n    int cnt[26] = {}, res = 0;\n    for (auto ch :  allowed)\n        ++cnt[ch - \'a\'
```cpp\nint countConsistentStrings(string allowed, vector<string>& words) {\n    int cnt[26] = {}, res = 0;\n    for (auto ch :  allowed)\n        ++cnt[ch - \'a\'];\n    for (auto &w : words)\n        res += all_of(begin(w), end(w), [&](char ch){ return cnt[ch - \'a\'];});\n    return res;\n}\n```
[]