记录详情

Wrong Answer

foo.c: In function 'main':
foo.c:33:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d %d %d", &y1, &m1, &d1);
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.c:34:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d %d %d", &y1, &m1, &d1);
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.c:35:15: warning: 'y2' is used uninitialized in this function [-Wuninitialized]
  int result = day(y2, m2, d2)-day(y1, m1, d1);
               ^~~~~~~~~~~~~~~
foo.c:35:15: warning: 'm2' is used uninitialized in this function [-Wuninitialized]
foo.c:35:15: warning: 'd2' is used uninitialized in this function [-Wuninitialized]
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read -737002, expect 6717. 0ms 256.0 KiB
#2 Wrong Answer Read -737050, expect 18415. 0ms 288.0 KiB
#3 Wrong Answer Read -737050, expect 43252. 0ms 256.0 KiB
#4 Wrong Answer Read -773574, expect 79776. 1ms 284.0 KiB
#5 Wrong Answer Read -734847, expect 5114. 0ms 256.0 KiB

信息

递交者
类型
递交
题目
5-6 过去了多少天
语言
C
递交时间
2021-10-11 19:24:11
评测时间
2021-10-11 19:24:11
评测机
分数
0
总耗时
4ms
峰值内存
288.0 KiB