记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:26:15: error: 'year' cannot be used as a function
   26 |  day=year(year);
      |               ^
foo.cc:29:18: error: 'month' cannot be used as a function
   29 |   day=month(month);
      |                  ^
foo.cc:33:25: error: expected ';' before '}' token
   33 |    date+=month-month1*31
      |                         ^
      |                         ;
   34 |   }
      |   ~                      
foo.cc:35:22: error: 'month' cannot be used as a function
   35 |   else if(month(month)==2)
      |                      ^
foo.cc:46:9: error: 'yeay' was not declared in this scope; did you mean 'year'?
   46 |   date+=yeay-year1*365;
      |         ^~~~
      |         year
foo.cc:47:17: error: 'month' cannot be used as a function
   47 |   if(month(month)==1)
      |                 ^
foo.cc:49:25: error: expected ';' before '}' token
   49 |    date+=month-month1*31
      |                         ^
      |                         ;
   50 |   }
      |   ~                      
foo.cc:51:22: error: 'month' cannot be used as a function
   51 |   else if(month(month)==2)
      |                      ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
5-6 过去了多少天
比赛
2022暑期青少年社团(入门赛)
语言
C++
递交时间
2022-07-28 21:41:32
评测时间
2022-07-28 21:41:32
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes