#include <iostream>
#include <vector>
using namespace std;
class classe
{
public:
int var;
vector<int> vetint;
};
int main()
{
vector<classe> vetor;
classe obj;
for (unsigned i=0; i<2 ; i++) {
obj.var = (i+1)*10;
for (unsigned c=0; c<3 ; c++) {
obj.vetint.push_back((c+1)*100);
}
vetor.push_back(obj);
}
for (unsigned i=0; i < vetor.size() ; i++) {
cout << "var(" << i << ") = " << vetor[i].var << endl;
for (unsigned c=0; c < vetor[i].vetint.size() ; c++) {
cout << "vetint(" << c << ") = " << vetor[i].vetint[c] << endl;;
}
}
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8dmVjdG9yPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKY2xhc3MgY2xhc3NlCnsKcHVibGljOgoJaW50IHZhcjsKCXZlY3RvcjxpbnQ+IHZldGludDsKfTsKCgppbnQgbWFpbigpCnsKCXZlY3RvcjxjbGFzc2U+IHZldG9yOwoJY2xhc3NlIG9iajsKCglmb3IgKHVuc2lnbmVkIGk9MDsgaTwyIDsgaSsrKSB7CgkJb2JqLnZhciA9IChpKzEpKjEwOwoJCWZvciAodW5zaWduZWQgYz0wOyBjPDMgOyBjKyspIHsKCQkJb2JqLnZldGludC5wdXNoX2JhY2soKGMrMSkqMTAwKTsKCQl9CgkJdmV0b3IucHVzaF9iYWNrKG9iaik7Cgl9Cglmb3IgKHVuc2lnbmVkIGk9MDsgaSA8IHZldG9yLnNpemUoKSA7IGkrKykgewoJCWNvdXQgPDwgInZhcigiIDw8IGkgPDwgIikgPSAiIDw8IHZldG9yW2ldLnZhciA8PCBlbmRsOwoJCWZvciAodW5zaWduZWQgYz0wOyBjIDwgdmV0b3JbaV0udmV0aW50LnNpemUoKSA7IGMrKykgewoJCQljb3V0IDw8ICJ2ZXRpbnQoIiA8PCBjIDw8ICIpID0gIiA8PCB2ZXRvcltpXS52ZXRpbnRbY10gPDwgZW5kbDs7CgkJfQoJfQp9Cg==