What happens when you attempt to compile and run the following code?
#include
#include
#include
using namespace std;
void print(int v) { cout< struct Sequence { int start; Sequence(int start):start(start){} int operator()() { return 10*(1+(start++ %3)); } }; int main() { vector generate_n(v1.begin(), 10, Sequence(1)); remove(v1.begin(), v1.end(), 10); for_each(v1.begin(), v1.end(), print);cout< return 0; } Program outputs:
Ming
7 months agoEmiko
7 months agoVirgie
7 months agoHelga
6 months agoMarion
7 months agoHelga
7 months agoRutha
7 months agoRenea
7 months agoTanja
7 months agoHyman
7 months agoHannah
8 months agoLauran
7 months agoKindra
7 months agoNicholle
7 months agoLeigha
7 months agoNikita
7 months agoLavonna
7 months agoAllene
8 months ago