运行 ID | 作者 | 题号 | 测评结果 | 分数 | 时间 | 内存 | 语言 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
464612 | cjh6 | 1018 - 计算月份的天数 | 编译错误 | 0 | 0 MS | 0 KB | C | 321 | 1年前 |
Main.c: In function ‘main’:
Main.c:7:13: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
7 | if (y%4==0 && y%100!=0 || y%400==0)
| ~~~~~~~^~~~~~~~~~~
Main.c:8:3: error: expected expression before ‘int’
8 | int y2 = 29;
| ^~~
Main.c:10:6: error: expected expression before ‘int’
10 | int y2 = 28;
| ^~~