#include<bits/stdc++.h>
using namespace std;

// Either globally or in a single class:
static char buf[450 << 20];
void* operator new(size_t s) {
	static size_t i = sizeof buf;
	assert(s < i);
	return (void*)&buf[i -= s];
}
void operator delete(void*) {}

vector<int>arr;

signed main(){
	arr.resize(1,10);
	int*pt=&arr[0];
	cout<<*pt<<endl;
	arr.resize(100);
	cout<<*pt<<endl;
}