Brute Force | C++
\nclass Solution {\npublic:\n    bool findSubarrays(vector<int>& nums) {\n        int n=nums.size();\n        map <int,int> m;\n        for(int i=0;i<n-1;i++){\
```\nclass Solution {\npublic:\n    bool findSubarrays(vector<int>& nums) {\n        int n=nums.size();\n        map <int,int> m;\n        for(int i=0;i<n-1;i++){\n            int k=nums[i]+nums[i+1];\n            m[k]++;\n        }\n        \n        for(auto it:m){\n            if(it.second>=2){\n                return true;\n            }\n        }\n        return false;\n    }\n};\n```
['C++']