/in/foo.cc: In constructor 'Package::Package(Person, Person, double, double)':
/in/foo.cc:33:9: warning: 'Package::recip' will be initialized after [-Wreorder]
Person recip;
^~~~~
/in/foo.cc:30:9: warning: 'double Package::weight' [-Wreorder]
double weight;
^~~~~~
/in/foo.cc:82:1: warning: when initialized here [-Wreorder]
Package::Package(Person a,Person b,double w, double p)
^~~~~~~
/in/foo.cc: In constructor 'TwoDayPackage::TwoDayPackage(Package, double)':
/in/foo.cc:40:10: warning: 'TwoDayPackage::package' will be initialized after [-Wreorder]
Package package;
^~~~~~~
/in/foo.cc:39:9: warning: 'double TwoDayPackage::flatFee' [-Wreorder]
double flatFee;
^~~~~~~
/in/foo.cc:87:1: warning: when initialized here [-Wreorder]
TwoDayPackage::TwoDayPackage(Package lo, double fee)
^~~~~~~~~~~~~
/in/foo.cc:88:28: error: no matching function for call to 'Package::Package()'
: package(lo), flatFee(fee)
^
/in/foo.cc:82:1: note: candidate: Package::Package(Person, Person, double, double)
Package::Package(Person a,Person b,double w, double p)
^~~~~~~
/in/foo.cc:82:1: note: candidate expects 4 arguments, 0 provided
/in/foo.cc:18:7: note: candidate: Package::Package(const Package&)
class Package
^~~~~~~
/in/foo.cc:18:7: note: candidate expects 1 argument, 0 provided
/in/foo.cc:18:7: note: candidate: Package::Package(Package&&)
/in/foo.cc:18:7: note: candidate expects 1 argument, 0 provided
/in/foo.cc: In constructor 'OvernightPackage::OvernightPackage(Package, double)':
/in/foo.cc:92:57: error: no matching function for call to 'Package::Package()'
OvernightPackage::OvernightPackage(Package lp, double pl)
^
/in/foo.cc:82:1: note: candidate: Package::Package(Person, Person, double, double)
Package::Package(Person a,Person b,double w, double p)
^~~~~~~
/in/foo.cc:82:1: note: candidate expects 4 arguments, 0 provided
/in/foo.cc:18:7: note: candidate: Package::Package(const Package&)
class Package
^~~~~~~
/in/foo.cc:18:7: note: candidate expects 1 argument, 0 provided
/in/foo.cc:18:7: note: candidate: Package::Package(Package&&)
/in/foo.cc:18:7: note: candidate expects 1 argument, 0 provided
/in/foo.cc:92:57: error: no matching function for call to 'Package::Package()'
OvernightPackage::OvernightPackage(Package lp, double pl)
^
/in/foo.cc:82:1: note: candidate: Package::Package(Person, Person, double, double)
Package::Package(Person a,Person b,double w, double p)
^~~~~~~
/in/foo.cc:82:1: note: candidate expects 4 arguments, 0 provided
/in/foo.cc:18:7: note: candidate: Package::Package(const Package&)
class Package
^~~~~~~
/in/foo.cc:18:7: note: candidate expects 1 argument, 0 provided
/in/foo.cc:18:7: note: candidate: Package::Package(Package&&)
/in/foo.cc:18:7: note: candidate expects 1 argument, 0 provided
/in/foo.cc: In function 'int main()':
/in/foo.cc:110:44: error: 'Package::Package(Person, Person, double, double)' is private within this context
Package p(sender, recipient, weight, price);
^
/in/foo.cc:82:1: note: declared private here
Package::Package(Person a,Person b,double w, double p)
^~~~~~~