记录详情

Compile Error

foo.c: In function 'main':
foo.c:6:29: error: 'month\U0000ff09\U0000ff1b' undeclared (first use in this function)
    6 |         scanf("%d%d",&year,&month);
      |                             ^~~~~~~~~
foo.c:6:29: note: each undeclared identifier is reported only once for each function it appears in
foo.c:6:38: error: expected ')' before 'switch'
    6 |         scanf("%d%d",&year,&month);
      |              ~                       ^
      |                                      )
    7 |                   switch(month){
      |                   ~~~~~~              
foo.c:25:28: error: expected ';' before '}' token
   25 |                   return 0;
      |                            ^
      |                            ;
   26 |                   }
      |                   ~         
foo.c:5:16: warning: unused variable 'days' [-Wunused-variable]
    5 | int year,month,days;
      |                ^~~~
foo.c:5:10: warning: unused variable 'month' [-Wunused-variable]
    5 | int year,month,days;
      |          ^~~~~
foo.c: At top level:
foo.c:29:1: error: expected identifier or '(' before '}' token
   29 | }
      | ^
[Hydro](https://hydro.ac)提供评测服务

信息

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