class Solution { public: void dfs(vector<vector<int >>& res, vector<int>& ans, vector<int>& num, vector<bool>& used, int target, int selSum, int startIndex) { if(selSum == target) { res.push_back(ans); return; ...