Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion day20/C++/PartitionDay20.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,17 @@ using namespace std;

int main(){
int n;
cout<<"Enter the number of values you want to have."<<endl;
cin >> n;
int a[n];
for(int i = 0; i < n; i++){
cout<<"Enter the "<<i+1<<" number"<<endl;
cin >> a[i];
}

int num;

cin >> num;

int count = 0;
vector<int> part;
vector<vector <int> > ans;
Expand Down