记录详情

Compile Error

foo.c:1:1: error: unknown type name 'def'
    1 | def substitute_cipher(key, s):
      | ^~~
foo.c: In function 'substitute_cipher':
foo.c:1:30: error: expected declaration specifiers before ':' token
    1 | def substitute_cipher(key, s):
      |                              ^
foo.c:4:5: error: expected declaration specifiers before 'for'
    4 |     for char in s:
      |     ^~~
foo.c:1:5: warning: type of 'key' defaults to 'int' [-Wimplicit-int]
    1 | def substitute_cipher(key, s):
      |     ^~~~~~~~~~~~~~~~~
foo.c:1:5: warning: type of 's' defaults to 'int' [-Wimplicit-int]
foo.c:14: warning: control reaches end of non-void function [-Wreturn-type]
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
题目
4-7 密钥表与替代密码
语言
C
递交时间
2023-12-05 16:02:52
评测时间
2023-12-05 16:02:52
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes