Line 175: Char 16: runtime error: reference binding to misaligned address 0xbebebebebebec0ba for type 'int', which requires 4 byte alignment (stl_deque.h) 0xbebebebebebec0ba: note: pointer points here <memory cannot be printed> SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/stl_deque.h:180:16
出这问题的根本原因是我对队列的访问是无效的(比如队列为空了,我执行出队操作和取首元素操作),当时我放错的地方是while(!d.empty()&&d.back()<value),我将&&前后写反,这样可能会会造成执行错误