运行 ID | 作者 | 题号 | 测评结果 | 分数 | 时间 | 内存 | 语言 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
477018 | AskThePine | 1018 - 计算月份的天数 | 编译错误 | 0 | 0 MS | 0 KB | C | 286 | 1年前 |
Main.c: In function ‘main’:
Main.c:8:11: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
8 | if(y%4==0&&y%100!=0||y%400==0)
| ~~~~~~^~~~~~~~~~
Main.c:13:10: warning: statement with no effect [-Wunused-value]
13 | if(m<13)2
| ^
Main.c:13:11: error: expected ‘;’ before ‘{’ token
13 | if(m<13)2
| ^
| ;
14 | {
| ~
Main.c:4:6: warning: variable ‘months’ set but not used [-Wunused-but-set-variable]
4 | int months[12]={31,28,31,30,31,30,31,31,30,31,30,31};
| ^~~~~~