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

Tests(0/0):


Code:

#include<iostream> #include<cstdio> using namespace std; int main(){ int n; cin>>n; char a[n+10],b[n+10]; cin>>a>>b; strcat(a,b); cout<<a[n-1]; return 0; }


Run Info:

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