记录详情

Wrong Answer

/in/foo.cc: In function 'int main()':
/in/foo.cc:15:13: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
   15 |     scanf("%d %d %d",&y,&m,&d);
      |            ~^        ~~
      |             |        |
      |             int*     long long int*
      |            %lld
/in/foo.cc:15:16: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
   15 |     scanf("%d %d %d",&y,&m,&d);
      |               ~^        ~~
      |                |        |
      |                int*     long long int*
      |               %lld
/in/foo.cc:15:19: warning: format '%d' expects argument of type 'int*', but argument 4 has type 'long long int*' [-Wformat=]
   15 |     scanf("%d %d %d",&y,&m,&d);
      |                  ~^        ~~
      |                   |        |
      |                   int*     long long int*
      |                  %lld
/in/foo.cc:19:28: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   19 |             if (((y%4 == 0 && y%100 != 0 || y%400 == 0)&& m<=2)||(((y+1)%4 == 0 && (y+1)%100 != 0 || (y+1)%400 == 0)&&m>2))
      |                   ~~~~~~~~~^~~~~~~~~~~~~
/in/foo.cc:19:81: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   19 |             if (((y%4 == 0 && y%100 != 0 || y%400 == 0)&& m<=2)||(((y+1)%4 == 0 && (y+1)%100 != 0 || (y+1)%400 == 0)&&m>2))
      |                                                                    ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 2ms 428.0 KiB
#2 Accepted 1ms 392.0 KiB
#3 Wrong Answer 1ms 504.0 KiB
#4 Wrong Answer 1ms 532.0 KiB
#5 Wrong Answer 1ms 532.0 KiB

信息

递交者
类型
递交
题目
P1014 OO1-3 日期类Date
语言
C++
递交时间
2026-12-06 21:05:11
评测时间
2026-12-06 21:05:11
评测机
分数
40
总耗时
9ms
峰值内存
532.0 KiB