Question: o I Ninclude using namespace std; int main(int arge, char *argvll) if (argc I.3) cout> din) A.push_back(din); int N = (int)A.size(); if (mode = 'A')

o I Ninclude <...> using namespace std; int main(int arge, char *argvll) if (argc I.3) cout> din) A.push_back(din); int N = (int)A.size(); if (mode = 'A') { // use std::partial_sort() } else if (mode == 'B') { // use std::make_heap().loop w/std::pop_heap() and std:reversel) } else if (mode'') // modify the code from mode B work like mode A } for (int i=0; i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
