Which changes introduced independently will allow code to compile and display 0 1 8 9 (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(){
A t[] ={ 3, 4, 2, 1, 6, 5, 7, 9, 8, 0 };
vectorv(t, t+10);
s1.insert(v.begin(),v.end());
s1.erase(s1.lower_bound(2),s1.upper_bound(7));
for(set::iterator i=s1.begin();i!= s1.end(); i++) {
cout<getA()<<" ";
}
cout< return 0; }
Keneth
2 months agoRuth
2 months agoVivan
2 months agoRebeca
2 months agoCorrinne
3 months agoLouann
3 months agoKaron
4 months agoGerald
4 months agoRusty
4 months agoTeri
4 months agoDante
4 months agoAnglea
5 months agoTequila
5 months agoJarvis
5 months agoScarlet
2 months agoKristofer
2 months agoErnestine
3 months agoCiara
3 months ago