| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 127002 | 何辰熠 | 墓碑上的字符 | C++ | Compile Error | 0 MS | 0 KB | 301 | 2025-07-23 15:33:15 |
#include<bits/stdc++.h> using namespace std; int main() { int n,l; char a[50],b[50]; cin>>n; for(int i=1;i<=n;i++) { cin>>a>>b; l=strlen(a)/2; for(int j=0;j<l;i++) cout<<a[i]; cout<<b; } for(int j=l;j<=strlen(a);j++) { cout<<a[i]; } cout<<endl; return 0; }
Main.cc: In function 'int main()':
Main.cc:16:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j=l;j<=strlen(a);j++)
^
Main.cc:18:11: error: 'i' was not declared in this scope
cout<