terminate called after throwing an instance of 'std::bad_array_new_length' what(): std::bad_array_new_length
时间: 2024-05-13 18:02:54 浏览: 337
kill_program_by_name.zip_terminate process
This error message indicates that an exception of type 'std::bad_array_new_length' was thrown during the execution of the program. This exception is typically thrown when an attempt is made to allocate an array with a negative size or a size that exceeds the implementation-defined maximum size.
To fix this error, you should check your code for any instances where you are attempting to allocate an array with a negative or overly large size. You may need to revise your code to ensure that the array size is always within the valid range.
阅读全文