unique 함수는, duplicated elements를 뒤로 보내는 역할은 수행하지 않습니다.
unique된 후 뒤에 있는 원소들은 unspecified value를 가집니다.
"Iterators pointing to an element between the new logical end and the physical end of the range are still dereferenceable, but the elements themselves have unspecified values."
hopesong 2년 전
안녕하세요. 1764번 듣보잡문제를 다른방법으로 풀어보려고 unique를 사용했는데 틀렸다고 나오네요. 봐도 이유를 모르겠습니다. 혹시라도 아시는분은 답변 남겨주시면 감사하겠습니다.