记录详情

Accepted

/in/foo.c: In function 'leapyear':
/in/foo.c:6:16: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  if (year%4==0 && year%100!=0 || year%400==0)
      ~~~~~~~~~~^~~~~~~~~~~~~~
/in/foo.c: In function 'main':
/in/foo.c:32:17: warning: unused variable 'i' [-Wunused-variable]
  int year,month,i,sum=0;
                 ^
/in/foo.c: In function 'mon':
/in/foo.c:28:9: warning: 'm' may be used uninitialized in this function [-Wmaybe-uninitialized]
  return m;
         ^
/in/foo.c: In function 'main':
/in/foo.c:37:2: warning: 'm' may be used uninitialized in this function [-Wmaybe-uninitialized]
  printf("%d\n",sum);
  ^~~~~~~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 0ms 224.0 KiB
#2 Accepted 0ms 224.0 KiB
#3 Accepted 0ms 128.0 KiB
#4 Accepted 0ms 224.0 KiB
#5 Accepted 0ms 224.0 KiB

信息

递交者
类型
递交
题目
A1-3 分支结构练习:月份天数
语言
C
递交时间
2019-07-11 10:08:55
评测时间
2019-07-11 10:08:55
评测机
分数
100
总耗时
3ms
峰值内存
224.0 KiB