[C++] Easy Approach
\n\nint numOfPairs(vector& nums, string target) {\n        int ans=0;\n        for(int i=0;i<nums.size();i++){\n            for(int j=0;j<nums.size();j++){\n   
```\n\n```int numOfPairs(vector<string>& nums, string target) {\n        int ans=0;\n        for(int i=0;i<nums.size();i++){\n            for(int j=0;j<nums.size();j++){\n                if(i==j)continue;\n                if(nums[i]+nums[j]==target)ans++;\n            }\n        }\n        return ans;\n    }``
[]