// Program: ds_examination_template.cpp // Author: ... // Includes: //... typedef std::vector Vec; typedef Vec::iterator It; typedef Vec::const_iterator cIt; // PRE: [begin, end) is a valid range with at least one element // POST: the minimum is written to min, and the maximum is // written to max void min_max (cIt begin, cIt end, int& min, int& max) { //... } // PRE: [begin, end) is a valid range and describes a sequence // of elements that are sorted in nondecreasing order // POST: the return value is true if and only if no element // occurs twice in the sequence bool all_unique (cIt begin, cIt end) { // handle the empty sequence //... // determine uniqueness //... } int main () { // define vector //... // read inputs into the vector //... // compute maximum, minimum //... // sort dataset //... // determine uniqueness //... // output //... return 0; }