记录详情

Compile Error

foo.c: In function 'main':
foo.c:20:37: error: 'o' undeclared (first use in this function)
   20 |             if(year%400==0||year%4==o&&year%100!=0)
      |                                     ^
foo.c:20:37: note: each undeclared identifier is reported only once for each function it appears in
foo.c:22:10: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
   22 |          else
      |          ^~~~
foo.c:23:25: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else'
   23 |                  day=28;break;
      |                         ^~~~~
foo.c:26:9: warning: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
   26 |         print("%d",day);
      |         ^~~~~
      |         printf
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
A1-3 分支结构练习:月份天数
比赛
2023年新生赛(第一场)
语言
C
递交时间
2023-08-15 15:06:53
评测时间
2023-08-15 15:06:53
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes