#!/bin/bash cat <<'EOF' > a.cpp #include using namespace std; int main(void) { vector a(1000000000); a[99999999] = 7; cout << 0 << endl; return 0; } EOF g++ a.cpp ./a.out & sleep 1