C++ Super Simple Easy & Short
\nclass Solution {\npublic:\n    int countConsistentStrings(string allowed, vector<string>& words) {\n        vector<bool> allowed_flags(26, false);\n        in
```\nclass Solution {\npublic:\n    int countConsistentStrings(string allowed, vector<string>& words) {\n        vector<bool> allowed_flags(26, false);\n        int res = 0, curr = 0;\n        \n        for (auto letter : allowed)\n            allowed_flags[letter - 97] = true;\n        \n        for (auto word : words) {\n            curr = 1;\n            for (auto letter : word) {\n                if (!allowed_flags[letter - 97]) {\n                    curr = 0;\n                    break;\n                }\n            }\n            res += curr;\n        }\n        \n        return res;\n    }\n};\n```\n**Like it? please upvote...**
['C']