Q: 1
What happens when you attempt to compile and run the following code?
#include
#include
#include
using namespace std;
int main(){
int t[] ={ 3, 4, 2, 1, 6, 5, 7, 9, 8, 0 };
multiset s1(t,t+10);
s1.insert(s1.find(7), 3);
for(multiset::iterator i=s1.begin();i!= s1.end(); i++) {
cout<<*i<<" ";
}
return 0;
}
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.