Это код, который мы написали:
Код: Выделить всё
#include
#include
#include
#include
using namespace std;
int solve(){
int N;
cin >> N;
vector V(N);
for(int &x: V){
cin >> x;
}
int max = V[0];
for (int i = 1; i < N; i++){
if(max
Подробнее здесь: [url]https://stackoverflow.com/questions/79331618/why-does-the-cin-of-an-int-for-the-dimension-of-a-stdvector-doesnt-work[/url]
Мобильная версия