记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:5:4: error: unknown type name 'def'
    5 |    def left_rotate_digits(n);
      |    ^~~
/in/foo.c:5:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '\U0000ff1b'
    5 |    def left_rotate_digits(n);
      |                             ^~
/in/foo.c:8:13: error: expected '(' before 'length'
    8 |          if length == 0;
      |             ^~~~~~
      |             (
/in/foo.c:8:13: error: 'length' undeclared (first use in this function)
    8 |          if length == 0;
      |             ^~~~~~
/in/foo.c:8:13: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:10:9: error: 'else' without a previous 'if'
   10 |         else
      |         ^~~~
/in/foo.c:11:17: error: 'rotated_str_n' undeclared (first use in this function)
   11 |                 rotated_str_n = str_n[1:] + str_n[0];
      |                 ^~~~~~~~~~~~~
/in/foo.c:11:33: error: 'str_n' undeclared (first use in this function)
   11 |                 rotated_str_n = str_n[1:] + str_n[0];
      |                                 ^~~~~
/in/foo.c:11:40: error: expected ']' before ':' token
   11 |                 rotated_str_n = str_n[1:] + str_n[0];
      |                                        ^
      |                                        ]
/in/foo.c:12:18: error: expected expression before 'int'
   12 |           return int(rotated_str_n);
      |                  ^~~
/in/foo.c:14:1: error: expected declaration or statement at end of input
   14 | }
      | ^

信息

递交者
类型
自测
语言
C
递交时间
2025-03-05 17:54:21
评测时间
2025-03-05 17:54:21
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes