记录详情

Compile Error

foo.c:1:1: error: unknown type name ‘def’
    1 | def min_finger_moves(nums):
      | ^~~
foo.c: In function ‘min_finger_moves’:
foo.c:1:27: error: expected declaration specifiers before ‘:’ token
    1 | def min_finger_moves(nums):
      |                           ^
foo.c:11:3: error: invalid preprocessing directive #\U00008f93\U00005165\U000091d1\U00007b8d\U000068d2\U00007684\U0000521d\U000059cb\U00009ad8\U00005ea6
   11 | # 输入金箍棒的初始高度
      |   ^~~~~~~~~~~~~~~~~~~~
foo.c:14:3: error: invalid preprocessing directive #\U00008ba1\U00007b97\U000081f3\U00005c11\U0000624b\U00006307\U000051e0\U00006b21\U000053ef\U00004ee5\U00004f7f\U000091d1\U00007b8d\U000068d2\U00009ad8\U00005ea6\U000090fd\U00004e00\U00006837
   14 | # 计算至少手指几次可以使金箍棒高度都一样
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.c:1:5: warning: type of ‘nums’ defaults to ‘int’ [-Wimplicit-int]
    1 | def min_finger_moves(nums):
      |     ^~~~~~~~~~~~~~~~
foo.c:17: warning: control reaches end of non-void function [-Wreturn-type]

信息

递交者
类型
递交
题目
P1048 [蓝桥杯国赛 2021 中级组] 变幻的金箍棒
语言
C
递交时间
2024-05-08 15:49:18
评测时间
2024-05-08 15:49:18
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes