c++ solution easy
\nclass Solution {\npublic:\n    vector<bool> prefixesDivBy5(vector<int>& A) \n    {\n        vector<bool>v;\n        int n=A.size();\n        int num=A[0];\n  
```\nclass Solution {\npublic:\n    vector<bool> prefixesDivBy5(vector<int>& A) \n    {\n        vector<bool>v;\n        int n=A.size();\n        int num=A[0];\n        if(num%5==0)\n        {\n            v.push_back(true);\n        }\n        else\n        {\n            v.push_back(false);\n        }\n        for(int i=1;i<n;i++)\n        {\n            num=(num<<1|A[i]);\n            if(num%5==0)\n            {\n                num=num%5;\n                v.push_back(true);\n            }\n            else\n            {\n                num=num%5;\n                v.push_back(false);\n            }\n        }\n        return v;\n    }\n};\n```
[]