记录详情

Compile Error

foo.cc: In function 'int operator-(const Date&)':
foo.cc:44:9: error: 'year' was not declared in this scope
   44 |  while (year != date2.year && month != date2.month && day != date2.day)
      |         ^~~~
foo.cc:44:31: error: 'month' was not declared in this scope
   44 |  while (year != date2.year && month != date2.month && day != date2.day)
      |                               ^~~~~
foo.cc:44:55: error: 'day' was not declared in this scope
   44 |  while (year != date2.year && month != date2.month && day != date2.day)
      |                                                       ^~~
foo.cc:48:13: error: 'daysOfMonth' was not declared in this scope
   48 |   if (day > daysOfMonth())
      |             ^~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1004 OO1-4 日期类Date
语言
C++
递交时间
2022-07-28 09:17:13
评测时间
2022-07-28 09:17:13
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes