记录详情

Compile Error

foo.c: In function 'main':
foo.c:6:13: error: stray '\342' in program
    6 |      printf(“输入年份,月份\n”);
      |             ^
foo.c:6:28: error: stray '\' in program
    6 |      printf(“输入年份,月份\n”);
      |                            ^
foo.c:6:14: error: '\U00008f93\U00005165\U00005e74\U00004efd\U0000ff0c\U00006708\U00004efd' undeclared (first use in this function)
    6 |      printf(“输入年份,月份\n”);
      |              ^~~~~~~~~~~~~~
foo.c:6:14: note: each undeclared identifier is reported only once for each function it appears in
foo.c:6:28: error: expected ')' before 'n'
    6 |      printf(“输入年份,月份\n”);
      |            ~               ^~
      |                            )
foo.c:6:30: error: stray '\342' in program
    6 |      printf(“输入年份,月份\n”);
      |                              ^
foo.c:7:12: error: stray '\342' in program
    7 |      scanf(“%d%d”,&y,&m);
      |            ^
foo.c:7:13: error: expected expression before '%' token
    7 |      scanf(“%d%d”,&y,&m);
      |             ^
foo.c:7:17: error: stray '\342' in program
    7 |      scanf(“%d%d”,&y,&m);
      |                 ^
foo.c:8:6: warning: implicit declaration of function 'If' [-Wimplicit-function-declaration]
    8 |      If(m%2!=0||m==8)
      |      ^~
foo.c:8:22: error: expected ';' before '{' token
    8 |      If(m%2!=0||m==8)
      |                      ^
      |                      ;
    9 | {
      | ~                     
foo.c:20:13: error: stray '\342' in program
   20 |      printf(“%d”,d);
      |             ^
foo.c:20:14: error: expected expression before '%' token
   20 |      printf(“%d”,d);
      |              ^
foo.c:20:16: error: stray '\342' in program
   20 |      printf(“%d”,d);
      |                ^
foo.c:21:1: error: 'Return' undeclared (first use in this function)
   21 | Return 0;
      | ^~~~~~
foo.c:21:7: error: expected ';' before numeric constant
   21 | Return 0;
      |       ^~
      |       ;
foo.c:5:12: warning: unused variable 'd' [-Wunused-variable]
    5 |    int y,m,d;
      |            ^
foo.c:5:8: warning: unused variable 'y' [-Wunused-variable]
    5 |    int y,m,d;
      |        ^
[Hydro](https://hydro.ac)提供评测服务

信息

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