记录详情

Wrong Answer

foo.cc: In function 'int main()':
foo.cc:18:15: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
   18 |         if(i&4==0&&i%100!=0||i%400==0){
      |              ~^~~
foo.cc:18:18: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   18 |         if(i&4==0&&i%100!=0||i%400==0){
      |            ~~~~~~^~~~~~~~~~
foo.cc:27:21: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
   27 |         if(D1.year&4==0&&D1.year%100!=0||D1.year%400==0){
      |                    ~^~~
foo.cc:27:24: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   27 |         if(D1.year&4==0&&D1.year%100!=0||D1.year%400==0){
      |            ~~~~~~~~~~~~^~~~~~~~~~~~~~~~
foo.cc:32:15: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
   32 |         if(i&4==0&&i%100!=0||i%400==0){
      |              ~^~~
foo.cc:32:18: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   32 |         if(i&4==0&&i%100!=0||i%400==0){
      |            ~~~~~~^~~~~~~~~~
foo.cc:41:21: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
   41 |         if(D2.year&4==0&&D2.year%100!=0||D2.year%400==0){
      |                    ~^~~
foo.cc:41:24: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   41 |         if(D2.year&4==0&&D2.year%100!=0||D2.year%400==0){
      |            ~~~~~~~~~~~~^~~~~~~~~~~~~~~~
foo.cc:15:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   15 |     scanf("%d %d %d",&D1.year,&D1.month,&D1.day);
      |     ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:16:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   16 |     scanf("%d %d %d",&D2.year,&D2.month,&D2.day);
      |     ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 6410, expect 6717. 2ms 512.0 KiB
#2 Wrong Answer Read 18251, expect 18415. 3ms 384.0 KiB
#3 Wrong Answer Read 43071, expect 43252. 3ms 384.0 KiB
#4 Wrong Answer Read 79571, expect 79776. 2ms 384.0 KiB
#5 Wrong Answer Read 5111, expect 5114. 2ms 384.0 KiB

信息

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