/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 | }
| ^