[C++] Simple Solution
\tclass Solution {\n\tpublic:\n\t\tvector prefixesDivBy5(vector& nums) {\n\t\t\tvector res;\n\t\t\tint t = 0;\n\t\t\tfor(int i = 0; i < nums.size(); i++){\n\t\t
\tclass Solution {\n\tpublic:\n\t\tvector<bool> prefixesDivBy5(vector<int>& nums) {\n\t\t\tvector<bool> res;\n\t\t\tint t = 0;\n\t\t\tfor(int i = 0; i < nums.size(); i++){\n\t\t\t\tt = (t  * 2  + nums[i]) % 5;\n\t\t\t\tres.push_back(t == 0);\n\t\t\t}\n\t\t\treturn res;\n\t\t}\n\t};
['C', 'C++']