Summer Special Limited Time 60% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 8w52ceb345

What happens when you attempt to compile and run the following code?

What happens when you attempt to compile and run the following code?

#include

#include

#include

using namespace std;

class A {

int a;

public:

A(int a) : a(a) {}

int getA() const { return a; } void setA(int a) { this?>a = a; }

bool operator==(const A & b) const { return a == b.a; }

};

bool compare(const A & a, const A & b) { return a == b; }

int main () {

int t[] = {1,2,3,3,5,1,2,4,4,5};

vector v (t,t+10);

vector::iterator it = v.begin();

while ( (it = adjacent_find (it, v.end(), compare)) != v.end()) {

cout<

}

cout<< endl;

return 0;

}

A.

program outputs: 2 3

B.

program outputs: 2 7

C.

program outputs: 3 8

D.

compilation error

E.

program will run forever