C++ || EASY
\n# Code\n\nclass Solution {\npublic:\n    int maxSubarrays(vector<int>& a) {\n        int n=a.size();\n        int c=0;\n        int m=a[0];\n        for(int i
\n# Code\n```\nclass Solution {\npublic:\n    int maxSubarrays(vector<int>& a) {\n        int n=a.size();\n        int c=0;\n        int m=a[0];\n        for(int i=0;i<n;i++)\n        {\n            m=m&a[i];\n            if(m==0)\n            {\n                c++;\n                if(i+1<n)\n                m=a[i+1];\n            }\n        }\n        return c==0 ? 1 : c;\n    }\n};\n```
['C++']