记录详情

Accepted

foo.c: In function ‘main’:
foo.c:51:17: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
   51 |                 if(month>2)
      |                 ^~
foo.c:53:25: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
   53 |                         printf("%d", sum);
      |                         ^~~~~~
foo.c:5:36: warning: variable ‘leap’ set but not used [-Wunused-but-set-variable]
    5 |         int year, month, day, sum, leap;
      |                                    ^~~~
foo.c:47:12: warning: ‘sum’ may be used uninitialized [-Wmaybe-uninitialized]
   47 |         sum=sum+day;
      |         ~~~^~~~~~~~
foo.c:5:31: note: ‘sum’ was declared here
    5 |         int year, month, day, sum, leap;
      |                               ^~~
# 状态 耗时 内存占用
#1 Accepted 1ms 288.0 KiB
#2 Accepted 1ms 516.0 KiB
#3 Accepted 1ms 324.0 KiB
#4 Accepted 1ms 516.0 KiB
#5 Accepted 1ms 520.0 KiB

信息

递交者
类型
递交
题目
A1-4 分支结构练习:今年过去了多少天
比赛
南师大(含泰州学院)2024年新生赛(第一场)
语言
C
递交时间
2024-08-18 22:53:16
评测时间
2024-08-18 22:53:16
评测机
分数
100
总耗时
7ms
峰值内存
520.0 KiB