Q: 5
What happens when you attempt to compile and run the following code?
#include
#include
#include
#include
using namespace std;
int main() {
int t[] = {1,2,3,2,3,5,1,2,7,3,2,1,10, 4,4,5};
vector v1(t, t + 15);
set s1(t, t + 15);
pair<set::iterator, vector::iterator > resultSet = equal(s1.begin(), s1.end(), v1.begin());
cout<<*resultSet.first<<" "<<*resultSet.second<<endl;
return 0;
}
Program outputs:
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.