
Иеремия
5 год назад
Пожалуйста посчитайте с написание программы на C++

ОТВЕТЫ

Valentin
Oct 24, 2020
Ещё вариант:
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main()
{
vector<int> v = { 12, 15, 2 };
cout << *max_element(v.begin(), v.end()) << endl;
return 0;
}
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main()
{
vector<int> v = { 12, 15, 2 };
cout << *max_element(v.begin(), v.end()) << endl;
return 0;
}
755
Смежные вопросы: