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
3 months agoElke
3 months agoTien
4 months agoElenore
4 months agoVirgie
4 months agoPamella
4 months agoTammi
5 months agoYolande
5 months agoKaran
5 months agoBrianne
5 months agoMing
5 months agoTheodora
5 months agoMerilyn
5 months agoProvidencia
5 months agoScot
5 months agoElin
5 months agoRueben
5 months agoLashonda
10 months agoTennie
10 months agoMelynda
10 months agoKris
10 months agoWenona
10 months agoEarleen
9 months agoLauran
9 months agoAngelica
9 months agoJestine
9 months agoLenna
11 months agoValene
11 months agoPauline
11 months agoValene
11 months ago