What happens when you attempt to compile and run the following code?
#include
#include
using namespace std;
template
void print(T start, T end) {
while (start != end) {
std::cout << *start << " "; start++;
}
}
int main()
{
int t1[] ={ 1, 7, 8, 4, 5 };
list
int t2[] ={ 3, 2, 6, 9, 0 };
list
l1.sort();
list
it++; it++;
l1.splice(l1.end(),l2, it, l2.end());
print(l1.begin(), l1.end()); cout<<"Size:"< print(l2.begin(), l2.end()); cout<<"Size:"< return 0; }
Rosina
2 months agoHubert
2 months agoBulah
2 months agoElden
13 days agoMinna
27 days agoTrinidad
1 months agoKina
2 months agoHerman
29 days agoOra
2 months agoShawn
2 months agoVeronika
2 months agoLavonna
21 days agoDaniel
1 months agoAltha
1 months agoJessenia
3 months agoLizette
3 months agoJessenia
3 months ago