记录详情

Compile Error

/in/foo.cc:36:18: error: stray '\357' in program
     double weight;
                  ^
/in/foo.cc:36:19: error: stray '\274' in program
     double weight;
                   ^
/in/foo.cc:36:20: error: stray '\233' in program
     double weight;
                    ^
/in/foo.cc:36:12: error: expected ';' at end of member declaration
     double weight;
            ^~~~~~
/in/foo.cc: In constructor 'Package::Package(Person&, Person&, double, double)':
/in/foo.cc:40:12: warning: 'Package::recipient' will be initialized after [-Wreorder]
     Person recipient;
            ^~~~~~~~~
/in/foo.cc:36:12: warning:   'double Package::weight' [-Wreorder]
     double weight;
            ^~~~~~
/in/foo.cc:41:5: warning:   when initialized here [-Wreorder]
     Package(Person&s ,Person&r,double w=1.0,double p=1.0)
     ^~~~~~~

信息

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