#include <iostream>
class A {
private:
int m_x;
public:
void setX(int x)
{
m_x = x;
}
int getX()
{
return m_x;
}
};
void func(_____)
{
a[0].setX(1);
}
int main() {
A a[2];
a[0].setX(2);
func(a);
std::cout << a[0].getX();
return 0;
}