记录详情

Wrong Answer

foo.cc: In function 'int main()':
foo.cc:49:19: warning: 'year2' may be used uninitialized in this function [-Wmaybe-uninitialized]
   sum=sum+MonthDay(year,m);
           ~~~~~~~~^~~~~~~~
foo.cc:11:6: note: 'year2' was declared here
  int year2,month2,day2; 
      ^~~~~
foo.cc:49:19: warning: 'year1' may be used uninitialized in this function [-Wmaybe-uninitialized]
   sum=sum+MonthDay(year,m);
           ~~~~~~~~^~~~~~~~
foo.cc:10:6: note: 'year1' was declared here
  int year1,month1,day1; 
      ^~~~~
# 状态 耗时 内存占用
#1 Wrong Answer Read {0}, expect {1}. ["365","364"] 2ms 384.0 KiB
#2 Accepted 2ms 348.0 KiB
#3 Wrong Answer Read {0}, expect {1}. ["26","25"] 1ms 384.0 KiB
#4 Wrong Answer Read {0}, expect {1}. ["29","28"] 1ms 384.0 KiB
#5 Wrong Answer Read {0}, expect {1}. ["307","306"] 1ms 384.0 KiB

信息

递交者
类型
递交
题目
P1083 xf1-6计算日期
比赛
2020苏青奥赛集训营(2021-2-2课堂小练)
语言
C++
递交时间
2021-02-02 12:33:44
评测时间
2021-02-02 12:33:44
评测机
分数
20
总耗时
10ms
峰值内存
384.0 KiB