Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
100114 郝王骏程 字符串拼接 C++ Compile Error 0 MS 0 KB 200 2024-12-02 20:04:46

Tests(0/0):


Code:

#include<iostream> #include<cstdio> using namespace std; int main(){ char a[100000],b[100000]; cin>>a>>b; int n; cin>>n; strcpy(a,b); cout<<a[n]; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:9:15: error: 'strcpy' was not declared in this scope
     strcpy(a,b);
               ^