Код: Выделить всё
#include
#include
using namespace std;
int main() {
int numElements;
int lowerBound;
int upperBound;
cin >> numElements;
vector numInts(numElements);
for(int i = 0; i < numElements; ++i) {
cin >> numInts.at(i);
}
cin >> lowerBound;
cin >> upperBound;
for(int i = 0; i < numElements; ++i) {
if(numInts.at(i) >= lowerBound && numInts.at(i)
Подробнее здесь: [url]https://stackoverflow.com/questions/78360143/need-help-understanding-vector-larger-than-max-size-with-my-program-how-t[/url]
Мобильная версия