Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
134075 刘益梵 字符串长度判断 C++ Compile Error 0 MS 0 KB 317 2025-10-25 16:19:49

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; char str[1000]; char str2[1000]; int main() { cin>>str;//字符数组可以以字符串形式读入和输出 cin>>str2; int len1 = strlen1(str);//字符数组求长度 int len2 = str2len2(str2); if(len1==len2) cout<<"yes"; else cout<<"no"; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:8:24: error: 'strlen1' was not declared in this scope
  int len1 = strlen1(str);//字符数组求长度
                        ^
Main.cc:9:26: error: 'str2len2' was not declared in this scope
  int len2 = str2len2(str2);
                          ^