Whose Error Is It?
C or C++ printed this
terminate called after throwing an instance of 'std::bad_alloc'
What it meansA new expression or standard container failed to allocate memory and threw std::bad_alloc, which nothing caught, so the program aborted.
The first thing to checkCheck for a huge or negative size passed to new, resize, or reserve, often from an uninitialized or overflowed variable, and look for memory leaks.
The walrus saysThe C++ way of saying you ran out of memory, loudly.