Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
80624 朱子相 字符串长度判断 C++ Compile Error 0 MS 0 KB 281 2024-07-11 15:44:30

Tests(0/0):


Code:

#include <iostream> #include <string> using namespace std; int main() { char a[1000],b[1000]; int sum1,sum2; cin>>a>>b; sum1 = strlen(a); sum2 = strlen(b); if(num1 == sum2) cout<<"yes"<<endl; else cout<<"no"<<endl; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:8:17: error: 'strlen' was not declared in this scope
  sum1 = strlen(a);
                 ^
Main.cc:10:5: error: 'num1' was not declared in this scope
  if(num1 == sum2)
     ^