#include <iostream>
using namespace std;
namespace pers
{
using std::cout;
using std::cin;
struct Person
{
std::string fname;
std::string lname;
};
void getPerson(Person & rp)
{
cout << "Enter first name: ";
cin >> rp.fname;
cout << "Enter last name: ";
cin >> rp.lname;
}
}
namespace debts
{
struct Debt
{
pers::Person name;
double amount;
};
void getDebt(Debt & rd)
{
getPerson(rd.name);
std::cout << "Enter debt: ";
std::cin >> rd.amount;
}
}
int main() {
// your code goes here
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKbmFtZXNwYWNlIHBlcnMKewogICAgdXNpbmcgc3RkOjpjb3V0OwogICAgdXNpbmcgc3RkOjpjaW47CiAgICAKICAgIHN0cnVjdCBQZXJzb24KICAgIHsKICAgICAgICBzdGQ6OnN0cmluZyBmbmFtZTsKICAgICAgICBzdGQ6OnN0cmluZyBsbmFtZTsKICAgIH07CiAgICAKICAgIHZvaWQgZ2V0UGVyc29uKFBlcnNvbiAmIHJwKQogICAgewogICAgICAgIGNvdXQgPDwgIkVudGVyIGZpcnN0IG5hbWU6ICI7CiAgICAgICAgY2luID4+IHJwLmZuYW1lOwogICAgICAgIGNvdXQgPDwgIkVudGVyIGxhc3QgbmFtZTogIjsKICAgICAgICBjaW4gPj4gcnAubG5hbWU7CiAgICB9Cn0KCm5hbWVzcGFjZSBkZWJ0cwp7CiAgICBzdHJ1Y3QgRGVidAogICAgewogICAgICAgIHBlcnM6OlBlcnNvbiBuYW1lOwogICAgICAgIGRvdWJsZSBhbW91bnQ7CiAgICB9OwogICAgCiAgICB2b2lkIGdldERlYnQoRGVidCAmIHJkKQogICAgewogICAgICAgIGdldFBlcnNvbihyZC5uYW1lKTsKICAgICAgICBzdGQ6OmNvdXQgPDwgIkVudGVyIGRlYnQ6ICI7CiAgICAgICAgc3RkOjpjaW4gPj4gcmQuYW1vdW50OwogICAgfQp9CgppbnQgbWFpbigpIHsKCS8vIHlvdXIgY29kZSBnb2VzIGhlcmUKCXJldHVybiAwOwp9