BRUTE FORCE || C++
Code\n\nclass Solution {\npublic:\n    int countPairs(vector<int>& v, int target) {\n        int ans = 0,i,j,n=v.size();\n        for(i = 0; i < n; i++){\n     
# Code\n```\nclass Solution {\npublic:\n    int countPairs(vector<int>& v, int target) {\n        int ans = 0,i,j,n=v.size();\n        for(i = 0; i < n; i++){\n            for(j = i+1; j < n; j++){\n                if(v[i]+v[j] < target){\n                    ans++;\n                }\n            }\n        }\n        return ans;\n    }\n};\n```
['C++']