[ c++ ]
```\nint numOfPairs(vector& nums, string target) {\n        int count=0;\n        for(int i=0; i<nums.size(); i++)\n        {\n            for(int j=i+1; j<nums
```\nint numOfPairs(vector<string>& nums, string target) {\n        int count=0;\n        for(int i=0; i<nums.size(); i++)\n        {\n            for(int j=i+1; j<nums.size(); j++)\n            {\n                if(nums[i]+nums[j] == target)\n                    count++;\n                if(nums[j]+nums[i] == target)\n                    count++;\n            }\n        }\n        return count;\n    }
[]