Vector<struct> problem

#include <vector>
struct TABLE
{
	double E;
};
void vecs(int NUM)
{
	vector<TABLE> v_table;
	for ( int i=0; i<NUM; i++ )
	{
		TABLE thistable;
		thistable.E=i*0.5;
		v_table.push_back(thistable);
	}
	int size=v_table.size();
	for ( int i=0; i<size; i++ )
	{
		Printf("v_table[%d].E=%g",i,v_table[i].E);
	}
}

if I run root -b -q vecs.C(100), it’s working.
but root -b -q vecs.C(1000), it gives *** Break *** segmentation violation

Any solution for that? Thanks

your version of ROOT5.18 did not support STL in the interpreter.
Use ACLIC to run your script

root -b -q vecs.C+\(1000\)
Rene

It works. Thanks a lot