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