terminate called after throwing an instance of 'std::bad_alloc'

Version imprimable