记录详情

Accepted

foo.cc: In function 'bool f(int)':
foo.cc:7:41: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
    7 |  if (year % 400 == 0 || year % 100 != 0 && year % 4 == 0) return true;
      |                         ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:129:12: warning: unused variable 'j' [-Wunused-variable]
  129 |  int x, i, j;
      |            ^
foo.cc:133:19: warning: unused variable 't' [-Wunused-variable]
  133 |  person* p[10], * t = new person;
      |                   ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 3ms 384.0 KiB
#2 Accepted 2ms 384.0 KiB
#3 Accepted 4ms 384.0 KiB
#4 Accepted 2ms 384.0 KiB
#5 Accepted 2ms 384.0 KiB

信息

递交者
类型
递交
比赛
2022春 面向对象程序设计方法的上机作业
语言
C++
递交时间
2022-06-13 16:49:49
评测时间
2022-06-13 16:49:49
评测机
分数
100
总耗时
16ms
峰值内存
384.0 KiB