记录详情

Compile Error

/in/foo.c: In function 'daysMonth':
/in/foo.c:10:7: error: stray '\357' in program
    if((year%4==0&&year%100!=0)||year%400==0)
       ^
/in/foo.c:10:8: error: stray '\274' in program
    if((year%4==0&&year%100!=0)||year%400==0)
        ^
/in/foo.c:10:9: error: stray '\210' in program
    if((year%4==0&&year%100!=0)||year%400==0)
         ^
/in/foo.c:10:33: error: expected expression before '||' token
    if((year%4==0&&year%100!=0)||year%400==0)
                                 ^~
/in/foo.c:10:4: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
    if((year%4==0&&year%100!=0)||year%400==0)
    ^~
/in/foo.c:10:46: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
    if((year%4==0&&year%100!=0)||year%400==0)
                                              ^
/in/foo.c:10:46: error: expected statement before ')' token
/in/foo.c:12:4: error: 'else' without a previous 'if'
    else
    ^~~~

信息

递交者
类型
自测
题目
A1-3 分支结构练习:月份天数
语言
C
递交时间
2024-10-25 16:19:11
评测时间
2024-10-25 16:19:11
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes