Time Exceeded

foo.cc: In function 'int isLeapYear(int)':
foo.cc:8:18: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
    8 |  return year%4==0&&year%100!=0||year%400==0;
      |         ~~~~~~~~~^~~~~~~~~~~~~
foo.cc: In function 'int pastDays(int, int, int)':
foo.cc:30:1: warning: no return statement in function returning non-void [-Wreturn-type]
   30 | }
      | ^
foo.cc: In function 'int main()':
foo.cc:33:21: warning: unused variable 'i' [-Wunused-variable]
   33 |  int year,month,day,i,a,sum=0;
      |                     ^
foo.cc:33:23: warning: unused variable 'a' [-Wunused-variable]
   33 |  int year,month,day,i,a,sum=0;
      |                       ^
foo.cc:33:25: warning: unused variable 'sum' [-Wunused-variable]
   33 |  int year,month,day,i,a,sum=0;
      |                         ^~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Time Exceeded ≥1090ms ≥3.117 MiB
#2 Time Exceeded ≥1090ms ≥3.117 MiB

信息

递交者
类型
递交
题目
P1073 闰年、年天数、月天数-函数
语言
C++
递交时间
2022-07-14 08:19:13
评测时间
2022-07-14 08:19:13
评测机
分数
0
总耗时
≥2181ms
峰值内存
≥3.117 MiB