A vector V is a vector that is composed of two parts:
such that is ordered in a strictly decreasing manner and is ordered in a strictly increasing manner. Furthermore, . Finally, we have that . That is, neither part is empty.
We need to implement the function
int picV(const vector<int>& v) with the following
specification:
PRE:
is a vector V and
.
POST: The position of
in
.
IMPORTANT: You only need to submit the requested
function, and possibly other necessary actions and functions. However,
you must keep the type definitions and #includes.
An undetermined number of vectors V with the following format: an integer indicating their size, and then the vector V. Every vector V has a size greater than or equal to 3.
The position within the vector where is.
Author: PRO1
Generation: 2026-01-25T13:13:37.866Z
© Jutge.org, 2006–2026.
https://jutge.org