Wrong Answer

foo.cc: In function 'int main()':
foo.cc:9:6: warning: unused variable 'a' [-Wunused-variable]
    9 |  int a[12] ;
      |      ^
foo.cc:11:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   11 |  scanf("%d %d %d",&y,&m,&d);
      |  ~~~~~^~~~~~~~~~~~~~~~~~~~~
foo.cc:28:11: warning: 'sum' may be used uninitialized in this function [-Wmaybe-uninitialized]
   28 | cout<<sum+d;
      |           ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read -217295923, expect 61. 3ms 384.0 KiB
#2 Wrong Answer Read 1964233676, expect 60. 2ms 384.0 KiB
#3 Wrong Answer Read 1240126718, expect 366. 3ms 384.0 KiB
#4 Wrong Answer Read 1594692861, expect 365. 2ms 384.0 KiB
#5 Wrong Answer Read 425903033, expect 41. 2ms 384.0 KiB

信息

递交者
类型
递交
题目
P1026 计算某日期的天数***
语言
C++
递交时间
2022-07-09 22:48:13
评测时间
2022-07-09 22:48:13
评测机
分数
0
总耗时
14ms
峰值内存
384.0 KiB