#include <iostream>
using namespace std;
struct A{
A(){cout<<"A";}
A(A&){cout<<"B";}
virtual void f(){cout<<"C";}
};
int main() {
A a[10];
std::cout<<'\n';
for(auto x: a)
{
x.f();
}
}
AAAAAAAAAA
BCBCBCBCBCBCBCBCBCBC
A a[10];
for(auto x: a)
x.f();