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; }
Argelia
6 months agoAdolph
6 months agoAnglea
7 months agoDyan
7 months agoAndree
7 months agoMisty
7 months agoGoldie
7 months agoBilly
8 months agoLaurel
8 months agoKeneth
8 months agoStephane
8 months agoPatti
8 months agoBrandon
8 months agoJoaquin
8 months agoRosina
1 year agoHubert
1 year agoBulah
1 year agoElden
12 months agoMinna
1 year agoTrinidad
1 year agoKina
1 year agoHerman
1 year agoOra
1 year agoShawn
1 year agoVeronika
1 year agoLavonna
12 months agoDaniel
1 year agoAltha
1 year agoJessenia
1 year agoLizette
1 year agoJessenia
1 year ago