#include <iostream>
#include <vector>

using namespace std;

int main()
{
	vector<int> vec = {1, 2, 3, 4};

	try {
		cout << "vec.at(0) : " << vec.at(0) << endl;
		cout << "vec.at(4) : " << vec.at(4) << endl;
	} catch(...) {
		cout << "exception !" << endl;
	}
}