Wrong Answer

/in/foo.cc: In function 'int leap(int)':
/in/foo.cc:5:15: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  return a%4==0&&a%100!=0||a%400==0;
         ~~~~~~^~~~~~~~~~
/in/foo.cc: In function 'int yearday(int, int, int)':
/in/foo.cc:16:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for(int i=1;i<y;i++)
  ^~~
/in/foo.cc:18:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
   return a+z;
   ^~~~~~
/in/foo.cc:18:12: warning: 'a' may be used uninitialized in this function [-Wmaybe-uninitialized]
   return a+z;
            ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:18:12: warning: 'a' may be used uninitialized in this function [-Wmaybe-uninitialized]
   return a+z;
            ^
/in/foo.cc:15:6: note: 'a' was declared here
  int a;
      ^
# 状态 耗时 内存占用
#1 Wrong Answer 1ms 404.0 KiB
#2 Wrong Answer 1ms 400.0 KiB
#3 Wrong Answer 1ms 356.0 KiB
#4 Wrong Answer 1ms 376.0 KiB
#5 Wrong Answer 1ms 376.0 KiB

信息

递交者
类型
递交
题目
P1093 5-6 过去了多少天
语言
C++
递交时间
2024-05-25 09:01:01
评测时间
2024-05-25 09:01:01
评测机
分数
0
总耗时
8ms
峰值内存
404.0 KiB