#include <iostream>
#include <vector>
using namespace std;
struct Atom {
int multiplier;
string part;
};
vector<Atom> cracking(string chemform) {
return { { 10, chemform }, { 20, "teste" } };
}
int main() {
vector<Atom> atoms =cracking("item");
cout << atoms[0].multiplier << " " << atoms[0].part << endl;
cout << atoms[1].multiplier << " " << atoms[1].part << endl;
}
//https://pt.stackoverflow.com/q/262791/101
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8dmVjdG9yPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKc3RydWN0IEF0b20gewogICAgaW50IG11bHRpcGxpZXI7CiAgICBzdHJpbmcgcGFydDsKfTsKCnZlY3RvcjxBdG9tPiBjcmFja2luZyhzdHJpbmcgY2hlbWZvcm0pIHsKICAgIHJldHVybiB7IHsgMTAsIGNoZW1mb3JtIH0sIHsgMjAsICJ0ZXN0ZSIgfSB9Owp9CmludCBtYWluKCkgewogICAgdmVjdG9yPEF0b20+IGF0b21zID1jcmFja2luZygiaXRlbSIpOwogICAgY291dCA8PCBhdG9tc1swXS5tdWx0aXBsaWVyIDw8ICIgIiA8PCBhdG9tc1swXS5wYXJ0IDw8IGVuZGw7CiAgICBjb3V0IDw8IGF0b21zWzFdLm11bHRpcGxpZXIgPDwgIiAiIDw8IGF0b21zWzFdLnBhcnQgPDwgZW5kbDsKfQoKLy9odHRwczovL3B0LnN0YWNrb3ZlcmZsb3cuY29tL3EvMjYyNzkxLzEwMQ==