MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / main

Function main

CPP/recursion/subset_recursion.cpp:22–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20 subset.pop_back();
21}
22int main(){
23 cin.tie(0)->sync_with_stdio(0);
24 int n;
25 cin>>n;
26 std::vector<int> nums(n);
27 for (int i = 0; i < n; ++i)
28 {
29 cin>>nums[i];
30 }
31 vector<int> emp;
32 generate(emp,0,nums);
33 for(auto i:ex){
34 for(auto j:i){
35 cout<<j<<" ";
36 }
37 cout<<endl;
38
39
40 }
41 return 0;
42}

Callers

nothing calls this directly

Calls 1

generateFunction · 0.85

Tested by

no test coverage detected