记录详情

Compile Error

/in/foo.cc: In constructor 'Package::Package(Person&, Person&, double, double)':
/in/foo.cc:42:12: error: expected primary-expression before '(' token
   { Package(Person&s ,Person&r,double w=1.0,double p=1.0)
            ^
/in/foo.cc:42:19: error: expected primary-expression before '&' token
   { Package(Person&s ,Person&r,double w=1.0,double p=1.0)
                   ^
/in/foo.cc:42:29: error: expected primary-expression before '&' token
   { Package(Person&s ,Person&r,double w=1.0,double p=1.0)
                             ^
/in/foo.cc:42:32: error: expected primary-expression before 'double'
   { Package(Person&s ,Person&r,double w=1.0,double p=1.0)
                                ^~~~~~
/in/foo.cc:42:45: error: expected primary-expression before 'double'
   { Package(Person&s ,Person&r,double w=1.0,double p=1.0)
                                             ^~~~~~

信息

递交者
类型
自测
题目
P1005 11.9 Package_Inheritance
语言
C++
递交时间
2020-03-16 10:42:20
评测时间
2020-03-16 10:42:20
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes