Doubt on mcq questions

What will be the output of following C++ code?

#include <bits/stdc++.h>
using namespace std;
int main()
{
sets;
pair<set::iterator, bool> ret;
s.insert(1);
s.insert(5);
s.insert(10);
s.insert(3);
ret = s.insert(10);
cout<<ret.second<<endl;
return 0;
}

Why is the output of this question 0

s.insert()
return 2 things
first one is iterator to the inserted value
second is boolean value if value is inserted first time it returns true else false
here 10 is inserted 2nd time so ans is false(0)

you can read it here
https://www.cplusplus.com/reference/set/set/insert/

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.