Accepted

foo.cc: In function ‘bool leap(int)’:
foo.cc:6:19: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
    6 |         if (x%4==0&&x%100!=0||x%400==0) return true;
      |             ~~~~~~^~~~~~~~~~
foo.cc: In function ‘int yd(int, int, int)’:
foo.cc:20:9: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
   20 |         for (int i=1;i<m;i++)
      |         ^~~
foo.cc:22:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
   22 |                 return ret;
      |                 ^~~~~~
# 状态 耗时 内存占用
#1 Accepted 2ms 504.0 KiB
#2 Accepted 2ms 760.0 KiB
#3 Accepted 2ms 504.0 KiB
#4 Accepted 2ms 504.0 KiB
#5 Accepted 2ms 340.0 KiB

信息

递交者
类型
递交
题目
P1093 5-6 过去了多少天
比赛
2025.7.19中级班练习
语言
C++
递交时间
2025-07-19 10:16:33
评测时间
2025-07-19 10:16:33
评测机
分数
100
总耗时
13ms
峰值内存
760.0 KiB