记录详情

Accepted

foo.c: In function ‘main’:
foo.c:6:27: warning: unknown escape sequence: '\040'
    6 |         scanf("%d\ %d\ %d",&year,&month,&day);
      |                           ^
foo.c:6:27: warning: unknown escape sequence: '\040'
foo.c:32:34: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
   32 |                 else if(year%4==0&&year%100!=0||year%400==0){
      |                         ~~~~~~~~~^~~~~~~~~~~~~
foo.c:35:12: warning: ‘change’ may be used uninitialized [-Wmaybe-uninitialized]
   35 |         sum+=change;
      |         ~~~^~~~~~~~
foo.c:5:34: note: ‘change’ was declared here
    5 |         int year,month,day,sum=0,change,count;
      |                                  ^~~~~~
# 状态 耗时 内存占用
#1 Accepted 1ms 324.0 KiB
#2 Accepted 0ms 516.0 KiB
#3 Accepted 1ms 288.0 KiB
#4 Accepted 1ms 288.0 KiB
#5 Accepted 1ms 516.0 KiB

信息

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