编号 题目 状态 分数 总时间 内存 代码 / 答案文件 提交者 提交时间
#2293 #1001. 中心字母 Compile Error 0 0 ms 0 K C / 43 B JimmyHu 2023-11-17 8:03:05
显示原始代码
s = input() ind = len(s) / 2 print(s[int(ind)])

编译信息

/sandbox/1/a.c:1:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
s=input()
^
/sandbox/1/a.c:1:3: warning: implicit declaration of function 'input' is invalid in C99 [-Wimplicit-function-declaration]
s=input()
  ^
/sandbox/1/a.c:1:3: error: initializer element is not a compile-time constant
s=input()
  ^~~~~~~
/sandbox/1/a.c:1:10: error: expected ';' after top level declarator
s=input()
         ^
         ;
2 warnings and 2 errors generated.