记录详情

Compile Error

foo.c: In function 'main':
foo.c:5:9: error: expected ';' before 'int'
    5 |    int a
      |         ^
      |         ;
    6 |    int b
      |    ~~~   
foo.c:6:9: error: expected ';' before 'int'
    6 |    int b
      |         ^
      |         ;
    7 |    int c=1
      |    ~~~   
foo.c:8:4: error: expected ',' or ';' before 'int'
    8 |    int d=1
      |    ^~~
foo.c:12:4: error: 'e' undeclared (first use in this function)
   12 |    e=d
      |    ^
foo.c:12:4: note: each undeclared identifier is reported only once for each function it appears in
foo.c:12:6: error: 'd' undeclared (first use in this function)
   12 |    e=d
      |      ^
foo.c:12:7: error: expected ';' before 'd'
   12 |    e=d
      |       ^
      |       ;
   13 |    d=d+c
      |    ~   
foo.c:22:9: error: expected declaration or statement at end of input
   22 |         }
      |         ^
foo.c:7:8: warning: unused variable 'c' [-Wunused-variable]
    7 |    int c=1
      |        ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1486 E. 小季的刑期
比赛
2023年新生赛(第三场)
语言
C
递交时间
2023-09-09 21:17:26
评测时间
2023-09-09 21:17:26
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes