C++ easy solution for begginers
Intuition\n Describe your first thoughts on how to solve this problem. \nWe want to add each combination of different elements to check if the sum is less than 
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\nWe want to add each combination of different elements to check if the sum is less than the target, if yes then we increase the count and finally return it.\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\nUse a double for loop, iterate through each combination of elements and find the sum and use a if statement \n\n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```\nclass Solution {\npublic:\n    int countPairs(vector<int>& nums, int target) {\n        int j = 0;\n        int k;\n        for (int i = 0; i < nums.size(); i++) {\n            for (int m = i+1; m < nums.size(); m++) {\n                k = nums [i] + nums [m];\n                if (k < target) {\n                    j++;\n                }\n            }\n        }\n        \n    return j;}\n};\n```
['C++']