#include &lt;iostream&gt;    #include &lt;algorithm&gt;    #include &lt;vector&gt;    using namespace std;    bool myfunction &#40;int i, int j&#41;     &#123;        return &#40;i==j&#41;;    &#125;    int main &#40;&#41;     &#123;        int myints&#91;&#93; = &#123;10, 20, 20, 20, 30, 30, 20, 20, 10&#125;;        vector&lt;int&gt; myvector &#40;myints, myints + 9&#41;;        vector&lt;int&gt; :: iterator it;        it = unique &#40;myvector.begin&#40;&#41;, myvector.end&#40;&#41;&#41;;                                        myvector.resize&#40; distance&#40;myvector.begin&#40;&#41;, it&#41; &#41;;        unique &#40;myvector.begin&#40;&#41;, myvector.end&#40;&#41;, myfunction&#41;;        for &#40;it = myvector.begin&#40;&#41;; it != myvector.end&#40;&#41;; ++it&#41;            cout &lt;&lt; ' ' &lt;&lt; *it;        return 0;    &#125;
A. 10 20 30 20 10
B. 10 20 30
C. 30 20 10
D. None of the mentioned
Answer:A
#include &lt;iostream&gt;    #include &lt;algorithm&gt;    #include &lt;vector&gt;    using namespace std;    bool myfunction &#40;int i, int j&#41;     &#123;        return &#40;i==j&#41;;    &#125;    int main &#40;&#41;     &#123;        int myints&#91;&#93; = &#123;10, 20, 20, 20, 30, 30, 20, 20, 10&#125;;        vector&lt;int&gt; myvector &#40;myints, myints + 9&#41;;        vector&lt;int&gt; :: iterator it;        it = unique &#40;myvector.begin&#40;&#41;, myvector.end&#40;&#41;&#41;;                                        myvector.resize&#40; distance&#40;myvector.begin&#40;&#41;, it&#41; &#41;;        unique &#40;myvector.begin&#40;&#41;, myvector.end&#40;&#41;, myfunction&#41;;        for &#40;it = myvector.begin&#40;&#41;; it != myvector.end&#40;&#41;; ++it&#41;            cout &lt;&lt; ' ' &lt;&lt; *it;        return 0;    &#125;
A. 10 20 30 20 10 B. 10 20 30 C. 30 20 10 D. None of the mentioned
Explanation:In this program, We are printing only the unique values by comparing every value.