| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 78233 | 申明宇 | 字符串拼接 | C++ | Compile Error | 0 MS | 0 KB | 251 | 2024-06-16 18:09:34 |
#include<iostream> #include<string> using namespace std; int main(){ char a[101],c[101]; int s,v,i; cin>>a>>c>>i; s=strlen(a); v=strlen(c); if(i>s) cout<<a[i-1]; else cout<<c[i-1-s]; return 0; }
Main.cc: In function 'int main()':
Main.cc:9:15: error: 'strlen' was not declared in this scope
s=strlen(a);
^