记录详情

Wrong Answer

foo.cc: In function 'void daysum()':
foo.cc:54:19: warning: self-comparison always evaluates to true [-Wtautological-compare]
   54 |         else if(lm==lm){
      |                 ~~^~~~
foo.cc:78:19: warning: self-comparison always evaluates to true [-Wtautological-compare]
   78 |         else if(lm==lm){
      |                 ~~^~~~
foo.cc: In function 'int main()':
foo.cc:91:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   91 |     scanf("%d %d %d",&fy,&fm,&fd);
      |     ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:92:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   92 |     scanf("%d %d %d",&ly,&lm,&ld);
      |     ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
foo.cc: In function 'int checkday(int, int)':
foo.cc:38:12: warning: 'daynum' may be used uninitialized in this function [-Wmaybe-uninitialized]
   38 |     return daynum;
      |            ^~~~~~
foo.cc: In function 'void daysum()':
foo.cc:72:15: warning: 'dl' may be used uninitialized in this function [-Wmaybe-uninitialized]
   72 |             dl+=checkday(fy,fm)-fd;
      |             ~~^~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 6714, expect 6717. 5ms 384.0 KiB
#2 Wrong Answer Read 18404, expect 18415. 2ms 396.0 KiB
#3 Wrong Answer Read 43224, expect 43252. 3ms 384.0 KiB
#4 Wrong Answer Read 79724, expect 79776. 4ms 512.0 KiB
#5 Wrong Answer Read 5111, expect 5114. 2ms 384.0 KiB

信息

递交者
类型
递交
题目
5-6 过去了多少天
比赛
2022暑期青少年社团(入门赛)
语言
C++
递交时间
2022-07-28 19:39:55
评测时间
2022-07-28 19:39:55
评测机
分数
0
总耗时
18ms
峰值内存
512.0 KiB