using namespace std;
Vector
Int main ()
{
Mp. The push_back (1);
Mp. The push_back (2);
Mp. The push_back (3);
For (vector
If (* it==2) {
Mp. Erase (it);
break;
}
}
for(int i=0; i
return 0;
}
CodePudding user response:
The conditions in the for loop; it!=mp. The begin () should be changed; it!=mp. The end ()CodePudding user response:
For (vectorCodePudding user response:
The effect well thank you