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
5 months agoEmiko
5 months agoVirgie
5 months agoHelga
4 months agoMarion
4 months agoHelga
5 months agoRutha
5 months agoRenea
5 months agoTanja
5 months agoHyman
5 months agoHannah
6 months agoLauran
5 months agoKindra
5 months agoNicholle
5 months agoLeigha
5 months agoNikita
5 months agoLavonna
5 months agoAllene
6 months ago