#include <vector>
class MyClass{
private:
int a;
std::vector<int> test;
public:
MyClass();
void add(int n);
};
MyClass::MyClass(){
}
void MyClass::add(int m){
//unable to resolve identifier push_back
test.push_back(m);
}
int main() {
MyClass a;
//request for member add in a which is of non class type
a.add(1);
}
ICAgI2luY2x1ZGUgPHZlY3Rvcj4KCmNsYXNzIE15Q2xhc3N7IApwcml2YXRlOgogICAgaW50IGE7CiAgICBzdGQ6OnZlY3RvcjxpbnQ+IHRlc3Q7CnB1YmxpYzoKICAgIE15Q2xhc3MoKTsKICAgIHZvaWQgYWRkKGludCBuKTsKfTsKCk15Q2xhc3M6Ok15Q2xhc3MoKXsKfQoKdm9pZCBNeUNsYXNzOjphZGQoaW50IG0pewovL3VuYWJsZSB0byByZXNvbHZlIGlkZW50aWZpZXIgcHVzaF9iYWNrCiAgICB0ZXN0LnB1c2hfYmFjayhtKTsKfQoKaW50IG1haW4oKSB7CgogICAgTXlDbGFzcyBhOwovL3JlcXVlc3QgZm9yIG1lbWJlciBhZGQgaW4gYSB3aGljaCBpcyBvZiBub24gY2xhc3MgdHlwZQogICAgYS5hZGQoMSk7CgoKfQ==