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
3 months agoHubert
3 months agoBulah
3 months agoElden
2 months agoMinna
2 months agoTrinidad
3 months agoKina
3 months agoHerman
3 months agoOra
3 months agoShawn
3 months agoVeronika
4 months agoLavonna
2 months agoDaniel
3 months agoAltha
3 months agoJessenia
4 months agoLizette
4 months agoJessenia
5 months ago