#include using namespace std; void selectionRecursive(int[], int); int maxim (int[], int); int main() { int n; cout<<"n="<>n; cout<<"Introdu elementele:"<>v[i]; cout<<"vectorul sortat este:"<nrmax){ indmax=i; nrmax=v[i]; } } return indmax; } void selectionRecursive (int v[], int n){ if (n>0){ swap (v[n], v[maxim (v, n)]); selectionRecursive(v, n-1); } }