#include &lt;iostream&gt;    #include &lt;set&gt;    using namespace std;    int main &#40;&#41;    &#123;        set&lt;int&gt; myset;        myset.insert&#40;20&#41;;        myset.insert&#40;30&#41;;        myset.insert&#40;10&#41;;        while &#40;!myset.empty&#40;&#41;&#41;        &#123;            cout &lt;&lt; ' ' &lt;&lt; *myset.begin&#40;&#41;;            myset.erase&#40;myset.begin&#40;&#41;&#41;;        &#125;        cout &lt;&lt; '\n';        return 0;    &#125;
A. 10
B. 20
C. 30
D. All of the mentioned
Answer:A
#include &lt;iostream&gt;    #include &lt;set&gt;    using namespace std;    int main &#40;&#41;    &#123;        set&lt;int&gt; myset;        myset.insert&#40;20&#41;;        myset.insert&#40;30&#41;;        myset.insert&#40;10&#41;;        while &#40;!myset.empty&#40;&#41;&#41;        &#123;            cout &lt;&lt; ' ' &lt;&lt; *myset.begin&#40;&#41;;            myset.erase&#40;myset.begin&#40;&#41;&#41;;        &#125;        cout &lt;&lt; '\n';        return 0;    &#125;
A. 10 B. 20 C. 30 D. All of the mentioned