编号 题目 状态 分数 总时间 内存 代码 / 答案文件 提交者 提交时间
#2419 #1001. 中心字母 Compile Error 0 0 ms 0 K C++ 17 (Clang) / 233 B t330026054 2023-11-17 15:17:06
显示原始代码

#include <iostream>
using namespace std;

int main() {
    int recorder = 0;
    char inputs[102];
    cin.getline(inputs, sizeof(inputs));
    recorder = strlen(inputs);
    cout << inputs[recorder / 2];
    return 0;
}

编译信息

/sandbox/1/a.cpp:10:16: error: use of undeclared identifier 'strlen'
    recorder = strlen(inputs);
               ^
1 error generated.