C++ solution
\nvector<bool> prefixesDivBy5(vector<int>& A) {\n\tint iCurr = 0;\n\tvector<bool> vRes;\n\tfor (auto n : A) {\n\t\tiCurr = (iCurr << 1) | n;\n\t\tvRes.push_back
```\nvector<bool> prefixesDivBy5(vector<int>& A) {\n\tint iCurr = 0;\n\tvector<bool> vRes;\n\tfor (auto n : A) {\n\t\tiCurr = (iCurr << 1) | n;\n\t\tvRes.push_back(iCurr % 5 == 0);\n\t\tiCurr %= 10;\n\t}\n\treturn vRes;\n}\n```\n
['C', 'C++']