Which changes introduced independently will allow the code to compile and display ''one'' ''eight'' ''nine'' ''ten''? Choose all that apply.
#include
#include
#include
using namespace std;
class A {
int a;
public:
A(int a):a(a){}
int getA() const { return a;}
/* Insert Code Here 1 */
};
/* Insert Code Here 2 */
int main(){
int t[] ={ 3, 4, 2, 1, 6, 5, 7, 9, 8, 10 };
string s[] = {"three", "four", "two", "one", "six","five", "seven", "nine","eight","ten"};
multimap m;/* Replace Code Here 3 */
for(int i=0; i<10; i++) {
m.insert(pair(A(t[i]),s[i]));
}
m.erase(m.lower_bound(2),m.upper_bound(7));
multimap::iterator i=m.begin();/* Replace Code Here 4 */
for( ; i!= m.end(); i++) {
cout<second<<" ";
}
cout< return 0; }
Dante
7 months agoElke
7 months agoTien
7 months agoElenore
8 months agoVirgie
8 months agoPamella
8 months agoTammi
8 months agoYolande
8 months agoKaran
9 months agoBrianne
9 months agoMing
9 months agoTheodora
9 months agoMerilyn
9 months agoProvidencia
9 months agoScot
9 months agoElin
9 months agoRueben
9 months agoLashonda
1 year agoTennie
1 year agoMelynda
1 year agoKris
1 year agoWenona
1 year agoEarleen
1 year agoLauran
1 year agoAngelica
1 year agoJestine
1 year agoLenna
1 year agoValene
1 year agoPauline
1 year agoValene
1 year ago