// test.cpp : Defines the entry point for the console application.
//
#include <iostream>
#include <cstdlib>
#include <algorithm>
#include "stdafx.h"
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
const int nSize = 10;
int nArray[nSize];
for (int i = 0;i < nSize;++i)
cin >> nArray[i];
cout << *std::max_element(nArray, &nArray[10]) << endl;//дадада именно на 11 элемент. Это же итераторы
system("pause");
return 0;
}