#include <iostream>
#include <cstring>
typedef struct Node {
int nr;
int num;
} Node;
typedef struct Node2 {
char name[50];
int code;
} Node2;
int main(int argc, char const *argv[]) {
Node *s;
Node2 *s2;
s = new Node[100];
s2 = new Node2[100];
s[0] = {1,2};
s[1] = {3,4};
std::cout<<s[0].nr<<"-"<<s[0].num<<"\n";
std::cout<<s[1].nr<<"-"<<s[1].num<<"\n";
strcpy(s2[0].name, "Ubuntu");
s2[0].code = 1;
strcpy(s2[1].name, "Debian");
s2[1].code = 2;
std::cout<<s2[0].name<<"-"<<s2[0].code<<"\n";
std::cout<<s2[1].name<<"-"<<s2[1].code<<"\n";
delete [] s;
delete [] s2;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y3N0cmluZz4KCnR5cGVkZWYgc3RydWN0IE5vZGUgewogICAgIGludCBucjsKICAgICBpbnQgbnVtOwp9IE5vZGU7Cgp0eXBlZGVmIHN0cnVjdCBOb2RlMiB7CiAgICAgY2hhciBuYW1lWzUwXTsKICAgICBpbnQgY29kZTsKfSBOb2RlMjsKCgppbnQgbWFpbihpbnQgYXJnYywgY2hhciBjb25zdCAqYXJndltdKSB7CgogIE5vZGUgKnM7CiAgTm9kZTIgKnMyOwogIHMgPSBuZXcgTm9kZVsxMDBdOwogIHMyID0gbmV3IE5vZGUyWzEwMF07CiAgCiAgc1swXSA9IHsxLDJ9OwogIHNbMV0gPSB7Myw0fTsKICAKCiAgc3RkOjpjb3V0PDxzWzBdLm5yPDwiLSI8PHNbMF0ubnVtPDwiXG4iOwogIHN0ZDo6Y291dDw8c1sxXS5ucjw8Ii0iPDxzWzFdLm51bTw8IlxuIjsKICAKICAKICBzdHJjcHkoczJbMF0ubmFtZSwgIlVidW50dSIpOwogIHMyWzBdLmNvZGUgPSAxOwogIAogIHN0cmNweShzMlsxXS5uYW1lLCAiRGViaWFuIik7CiAgczJbMV0uY29kZSA9IDI7CiAgCiAgCiAgc3RkOjpjb3V0PDxzMlswXS5uYW1lPDwiLSI8PHMyWzBdLmNvZGU8PCJcbiI7CiAgc3RkOjpjb3V0PDxzMlsxXS5uYW1lPDwiLSI8PHMyWzFdLmNvZGU8PCJcbiI7CiAgCgogIGRlbGV0ZSBbXSBzOwogIGRlbGV0ZSBbXSBzMjsKCiAgcmV0dXJuIDA7Cn0K