Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
127005 董予轩 墓碑上的字符 C++ Compile Error 0 MS 0 KB 287 2025-07-23 15:34:11

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main() { int n,l; char a[50],b[50]; for(int i=1;i<=n;i++) { cin>>a>>b; l=strien(a)/2; for(int j=1;j<=l;j++) cout<<a[i]; cout<<b; for(int j=1;j<=strlen(a);j++) cout<<a[i]; cout<<endl; } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:10:13: error: 'strien' was not declared in this scope
   l=strien(a)/2;
             ^
Main.cc:14:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for(int j=1;j<=strlen(a);j++)
                ^